mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] Remove domain from onchange method and put it in field view
This commit is contained in:
committed by
Carlos Vallés Fuster
parent
b9f0b7a60d
commit
f4577808ab
@@ -730,7 +730,7 @@ class RmaOrderLine(models.Model):
|
||||
)
|
||||
if self.lot_id.product_id != self.product_id:
|
||||
self.lot_id = False
|
||||
return {"domain": {"lot_id": [("product_id", "=", self.product_id.id)]}}
|
||||
return result
|
||||
|
||||
@api.onchange("operation_id")
|
||||
def _onchange_operation_id(self):
|
||||
|
||||
Reference in New Issue
Block a user