Skip to content
Snippets Groups Projects
Commit 34d7e5df authored by jordan's avatar jordan
Browse files

[fix] taux_horaire linked to sale_order for timesheet

parent 64755b39
No related branches found
No related tags found
1 merge request!114.0 sale overview
......@@ -79,7 +79,7 @@ class SaleOrderLine(models.Model):
""" Reprise de la fonction native pour changer le mode de calcul des heures planifiées dans timesheet
"""
company_time_uom_id = self.env.user.company_id.project_time_mode_id
taux_horaire = self.env.user.company_id.taux_horaire
taux_horaire = self.order_id.taux_horaire
if self.product_uom.id != company_time_uom_id.id \
and self.product_uom.category_id.id == company_time_uom_id.category_id.id:
planned_hours = super(SaleOrderLine, self)._convert_qty_company_hours
......@@ -98,7 +98,6 @@ class SaleOrderLine(models.Model):
if stage:
task.stage_id = stage
task_name = str(client_name + " - " + stage.name)
print('------task_name', str(task_name))
task.write({'name': task_name})
else:
task.write({'name': client_name})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment