Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Given an object with multiple function fields, what is the computation order, or is it arbitary?
If it is arbitrary, should the developer pay extra attention and avoid using function field values within the other function fields of the same object?
Upon investigation, it appears that the order of calculations depends on the priority set in each line of the store argument. so if you want a function field to compute before another, the priorities need to be lower, or higher if you want the opposite.
In conclusion, if you want to force a computation order, then define the priority argument in the store argument, otherwise if you just set store to True then the computation will be arbitrary since they all have the same default priority 10
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/13/15, 7:20 PM|
|Seen: 1259 times|
|Last updated: 3/16/15, 8:10 AM|