修复报废bug

This commit is contained in:
jinling.yang
2024-08-20 17:52:36 +08:00
parent 4ed7ecf628
commit 7b2908defa
6 changed files with 18 additions and 53 deletions

View File

@@ -1094,7 +1094,9 @@ class ResMrpWorkOrder(models.Model):
# move_out._action_assign()
if self.state == 'waiting' or self.state == 'ready' or self.state == 'progress':
print(self.production_id.move_raw_ids)
self.move_raw_ids = self.production_id.move_raw_ids
print(self.move_raw_ids)
self.move_raw_ids[0].write({
'materiel_length': self.move_raw_ids[0].product_id.length,
'materiel_width': self.move_raw_ids[0].product_id.width,