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.
I have a need for a one2one relationship between
crm.lead and display the link in each object's form view. I have put my many2one field into
crm.lead and added it to the Opportunity Form View. I now need to do the same thing to the Project Form View, but the only way I can get that relationship to display is by using a one2many field in
project.project. I saw in other forum posts that _inherits need to be set, however when I do that and put the field in my view I get "Automatically created field to link to..." in the label section and no value.
Has anyone successfully created this one2one relationship with links in the object views?
I am unsure if it helps, but you can inherit from another model in a way that it the second model is one to one in embedded with the first. Your DB has two tables, but the view treats them as one. I am unsure if there is actually a link back from the inheretid model, but I think this is what is done with res_user vs res_partner... the user iniherits and actually creates a res_partner.
The heading Polymorphic data using _inherits
Not exactly one2one, but might still be what you need.
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/19/13, 1:30 PM|
|Seen: 3168 times|
|Last updated: 6/24/15, 5:18 AM|