Odoo Help


Same field and value in two models with odoo 8

Guillemot Yoann
on 3/24/16, 12:04 PM 253 views

I would like to create a new field which is accessible on two different models with the value updated.

Exactly i want a field.Boolean in the class crm_lead and i would like to access to this same field in crm_phonecall.

if i check the boolean on the view  crm.lead it's check too in the view crm.phonecall and the inverse.

I tried a lot of things with Many2one and One2many and related= but with no result.

Thanks for your help


Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 3/26/16, 5:56 AM


I think you need to override the write method in both models 'crm_lead' and 'crm_phonecall'; you can

use the relational field 'many2one' to update the corresponding record ...

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/24/16, 12:04 PM
Seen: 253 times
Last updated: 3/26/16, 5:56 AM