Odoo 12 Development Cookbook - Third Edition
by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
There's more...
In Chapter 6, Basic Server-Side Development, we saw how to redefine the write() methods of a model to perform actions on record updates. Automated actions on record updates provide another way to achieve this, with some benefits and drawbacks.
Among the benefits, it is easy to define an action triggered by the update of a stored computed field, which is tricky to do in pure code. It is also possible to define filters on records and have different rules for different records, or for records matching different conditions that can be expressed with search domains.
However, automated actions can have disadvantages when compared to Python business logic code inside modules. With poor planning, the flexibility provided can lead ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access