修复报废bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user