CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have a function like that.
# @api.depends('field1', 'field2')
for order in self:
# Call methods that will access the database. # Do something if field1 was changed
# Do something else if field2 was changed
Is there any way I can know what field was changed to trigger the server request? I want to run this method only once whether field1 or field2 was changed. I want to avoid make 2 functions with one "depend" each to make sure this is called only once.
About This Community
Odoo Training Center
|Asked: 3/4/16, 4:30 PM|
|Seen: 549 times|
|Last updated: 3/4/16, 6:02 PM|