mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
@@ -9,7 +9,7 @@ class MrpWorkorder(models.Model):
|
||||
|
||||
@api.multi
|
||||
def record_production(self):
|
||||
if self.product_id.auto_create_lot:
|
||||
if not self.final_lot_id and self.product_id.auto_create_lot:
|
||||
self.final_lot_id = self.env['stock.production.lot'].create({
|
||||
'product_id': self.product_id.id,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user