Odoo Help

3

2
1 Answer
4
Avatar

Daniel Reis

--Daniel Reis--
3701
| 8 8 11
Linda-a-Velha, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt


Daniel Reis
17/09/13 07:19

What you need to set a context on "Container" form's calculation_id field:.

Assuming that "Container" and a many2one calculation_id for the Calculation object, and the Calculation object has a many2one container_id:

<field name="calculation_id" context="{'default_container_id':  active_id}" />

This will tell the Calculation form to by default set the container_id field with the Container's Id.

2 Comments
tim diamond
19/09/13 20:02

Awesome advice!!! Thank you so much for the help. Works great.

Luis
12/12/13 07:44

This is not working ! I have crossed many2one relations to try mimick one2one and I get errors of missing ID value in the required field

Ask a Question
Writer
Keep Informed
0 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now