diff options
| author | jbm-odoo <jbm@odoo.com> | 2020-09-15 14:44:03 +0000 |
|---|---|---|
| committer | jbm-odoo <jbm@odoo.com> | 2020-09-18 14:21:46 +0000 |
| commit | 81b6e13cc6d2065c9274a50719acfeebe0d7cf99 (patch) | |
| tree | 1429e90ac2dd9d7320808ca9770160e23937bd19 /addons/sale_project/models | |
| parent | 255eb91dd5e9fb39a7625064d1ba8e0b492bfb85 (diff) | |
[FIX] sale_timesheet: Billable project
taskId 2338803
closes odoo/odoo#57761
Related: odoo/enterprise#13241
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/sale_project/models')
| -rw-r--r-- | addons/sale_project/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_project/models/sale_order.py b/addons/sale_project/models/sale_order.py index ffeeae5ffa4..3a2a2866f92 100644 --- a/addons/sale_project/models/sale_order.py +++ b/addons/sale_project/models/sale_order.py @@ -147,7 +147,7 @@ class SaleOrderLine(models.Model): # changing the ordered quantity should change the planned hours on the # task, whatever the SO state. It will be blocked by the super in case # of a locked sale order. - if 'product_uom_qty' in values: + if 'product_uom_qty' in values and not self.env.context.get('no_update_planned_hours', False): for line in self: if line.task_id: planned_hours = line._convert_qty_company_hours(line.task_id.company_id) |
