[ADD][BR1228][T24770]Extra time application#210
Open
lonelysun wants to merge 16 commits intoElico-Corp:10.0from
Open
[ADD][BR1228][T24770]Extra time application#210lonelysun wants to merge 16 commits intoElico-Corp:10.0from
lonelysun wants to merge 16 commits intoElico-Corp:10.0from
Conversation
… automatic create a extra time record
elicoidal
reviewed
Mar 21, 2018
| class ProjectTaskInherit(models.Model): | ||
| _inherit = 'project.task' | ||
|
|
||
| sub_extra_time = fields.Float( |
Contributor
There was a problem hiding this comment.
better total_extra_time?
| current_user = log.env.user | ||
| remaining = log.remaining_hours | ||
| spending_hours = 0 | ||
| if not log.env.context.get('flag') and \ |
| remaining = log.remaining_hours | ||
| spending_hours = 0 | ||
| if not log.env.context.get('flag') and \ | ||
| not log.env.context.get('flag_remaine'): |
| if remaining < 0: | ||
| raise UserError( | ||
| _( | ||
| 'The task has no enough time left, ' |
| if not is_exist and self.project_id.user_id != current_user: | ||
| raise UserError( | ||
| _('You do not have permission to ' | ||
| 'create task belong to this project.')) |
| default=_get_task_id, readonly="True" | ||
| ) | ||
| reason = fields.Text('Reason', help='the reason of apply') | ||
| apply_hours = fields.Float('Apply Hours', help='the length of apply time') |
Contributor
There was a problem hiding this comment.
help='Duration of applied time extension'
| Extra Time Application | ||
| ====================== | ||
| This module adds functionality to the application time and | ||
| will not allow to add new items if the task time is less than 0 |
| ====================== | ||
| Extra Time Application | ||
| ====================== | ||
| This module adds functionality to the application time and |
Contributor
There was a problem hiding this comment.
This module adds functionality of time application to extend the remaining time in tasks and
| This module adds functionality to the application time and | ||
| will not allow to add new items if the task time is less than 0 | ||
|
|
||
| Bug Tracker |
Contributor
|
@seb-elico what about this PR? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replace #206
@Elico-Corp/odoo-reviewers