Odoo Help

Welcome!

This community 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.

0

What is the order of computation for multiple function fields

By
IBS
on 3/13/15, 7:20 PM 696 views

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?

0

IBS

--IBS--
1302
| 4 5 8
Tétouan, Morocco
--IBS--

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

IBS
On 3/14/15, 5:36 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/13/15, 7:20 PM
Seen: 696 times
Last updated: 3/16/15, 8:10 AM