diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 84e7e573..082924c5 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -715,6 +715,11 @@ class ResMrpWorkOrder(models.Model): 'materiel_width': self.move_raw_ids[0].product_id.width, 'materiel_height': self.move_raw_ids[0].product_id.height }) + self.write({ + 'material_length': self.move_raw_ids[0].product_id.length, + 'material_width': self.move_raw_ids[0].product_id.width, + 'material_height': self.move_raw_ids[0].product_id.height + }) self.ensure_one() if any(not time.date_end for time in self.time_ids.filtered(lambda t: t.user_id.id == self.env.user.id)):