59edbb78945d59c26b9f2ce50bca34b7e634998b
`base_automation` module patches `write` method to detect changes that trigger the automated actions. It's implemented by reading current values before making the write operaion. It may lead to max recursion error if compute method updates other records. Example: in `account_asset` Depreciation values are computed for all Depreciation Lines at the same time [1]. Fix it by breaking recursion on computed not stored readonly fields: `write` method for such fields might be called by compute method only and hence the old value is always equal to new value. STEPS: - Create an Asset model of 240 Months, Straight Line, No pro rata - Create Assets using this asset model and confirm it. - Create an automated action for account.move and trigger on update (Action can be anything) - Now try to access the Assets [1]: https://github.com/odoo/enterprise/blob/45dd0884c84d0e8a31c2c36a975f1b1f7cf6d01c/account_asset/models/account_move.py#L39-L46 opw-3147688 closes odoo/odoo#115216 X-original-commit: 0561ad2324905aed5afd5cc163e5e6aebee09d40 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com> Signed-off-by: Ivan Elizaryev (iel) <iel@odoo.com>
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%