fixed singleton error

quality_control_stock_oca 14.0.1.0.1
This commit is contained in:
Davor Bojkić
2022-04-26 10:26:47 +02:00
committed by Víctor Martínez
parent 35c04d9d15
commit cbfceef95e
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
{
"name": "Quality control - Stock (OCA)",
"version": "14.0.1.0.0",
"version": "14.0.1.0.1",
"category": "Quality control",
"license": "AGPL-3",
"author": "OdooMRP team, AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, "

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