Merge PR #787 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-04-26 08:34:07 +00:00

View File

@@ -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")