-
-
Notifications
You must be signed in to change notification settings - Fork 392
[ADD] sale_order_update_timesheet_price #852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] sale_order_update_timesheet_price #852
Conversation
be599f8 to
54e2dec
Compare
sale_order_update_timesheet_price/wizards/sale_order_unit_price_update.py
Show resolved
Hide resolved
sale_order_update_timesheet_price/wizards/sale_order_unit_price_update.py
Outdated
Show resolved
Hide resolved
rousseldenis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes
54e2dec to
2c4ec71
Compare
2c4ec71 to
6f13797
Compare
| order_line_name = fields.Text(related="order_line_id.name", readonly=True) | ||
| old_unit_price = fields.Float(related="order_line_id.price_unit", readonly=True) | ||
| new_unit_price = fields.Float(required=True, digits="Product Price") | ||
| old_line_prefix = fields.Char(default="[Old Rate]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be great to have a configuration parameter for this default value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can come later if needed.
|
This PR has the |
|
Hey @glitchov thank you for your contribution! /ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at d7c6942. Thanks a lot for contributing to OCA. ❤️ |
This modules adds a button on already invoiced timesheet sale order lines to update the unit price. It creates a new order line with the new price and re-links projects, tasks, milestones and so line employee maps from the old line to the new line.