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
AaronHForgeFlow
parent
9956118af7
commit
6c67346b08
@@ -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