[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:
bat-odoo
2023-11-02 18:23:15 +00:00
committed by Arnold Moyaux
parent 153d62eaf4
commit 794d52c462
+1
View File
@@ -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,
},