Odoo Help

0

Same field and value in two models with odoo 8

By
Guillemot Yoann
on 3/24/16, 12:04 PM 276 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

1

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
3133
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


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

Hi,

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


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

Question tools

1 follower(s)

Stats

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