mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
fixed singleton error
This commit is contained in:
@@ -69,7 +69,7 @@ class QcInspection(models.Model):
|
||||
inspection.product_id = inspection.object_id.product_id
|
||||
elif inspection.object_id._name == "stock.move.line":
|
||||
inspection.product_id = inspection.object_id.product_id
|
||||
elif self.object_id._name == "stock.production.lot":
|
||||
elif inspection.object_id._name == "stock.production.lot":
|
||||
inspection.product_id = inspection.object_id.product_id
|
||||
|
||||
@api.onchange("object_id")
|
||||
|
||||
Reference in New Issue
Block a user