From f4433ac3cc63b39f9849a40e96fad6612f609481 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Thu, 25 Apr 2024 09:03:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E5=8D=95=E5=A4=84?= =?UTF-8?q?=E7=9A=84=E5=B0=BA=E5=AF=B8=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workorder.py | 5 +++++ 1 file changed, 5 insertions(+) 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)):