[IMP] mrp: added barcode in manufacture operation
In this commit, we added a barcode for manufacturing operation. task-3455363 closes odoo/odoo#140779 Related: odoo/enterprise#50067 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
@@ -269,6 +269,7 @@ class StockWarehouse(models.Model):
|
||||
},
|
||||
'manu_type_id': {
|
||||
'active': self.manufacture_to_resupply and self.active,
|
||||
'barcode': self.code.replace(" ", "").upper() + "-MANUFACTURING",
|
||||
'default_location_src_id': self.manufacture_steps in ('pbm', 'pbm_sam') and self.pbm_loc_id.id or self.lot_stock_id.id,
|
||||
'default_location_dest_id': self.manufacture_steps == 'pbm_sam' and self.sam_loc_id.id or self.lot_stock_id.id,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user