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 tree objects A, A1 and A2.
A1 & A2 inherits A by delegation.
Is it possible to make a tree view of A in a way that when a user clicks on a row, it opens a form view of corresponding delegated objects A1 / A2 ?
Workaround: button in tree view with following function in model (assuming a1 and a2 are one2many fields):
record = self.a1 if self.a1 else self.a2 if self.a2 else False
'view_id': self.env.ref('test.view_' + record._name + '_form').id,
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: 7/31/15, 5:39 AM|
|Seen: 563 times|
|Last updated: 7/31/15, 9:29 AM|