mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_scrap: migration to v17
This commit is contained in:
committed by
JasminSForgeFlow
parent
df976cbca5
commit
fc83285b6e
@@ -92,7 +92,7 @@ class RmaOrderLine(models.Model):
|
||||
|
||||
@api.onchange("operation_id")
|
||||
def _onchange_operation_id(self):
|
||||
res = super(RmaOrderLine, self)._onchange_operation_id()
|
||||
res = super()._onchange_operation_id()
|
||||
if self.operation_id:
|
||||
self.scrap_policy = self.operation_id.scrap_policy or "no"
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user