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.
How to show a One2many field values multiple time in same form in Odoo.
It require to show the same value in multiple tab in a form but with different domain.
Is it possible to achieve this ? If not what is the best alternative for achieving the same ?
Any thought on this is appreciated !
It's way simple than you are thinking. You just have to create multiple one2many fields with different field names and add the domain according to your need.
draft_lines = fields.One2many('my_obj.obj', 'my_obj_id', domain=[('state', '=', 'draft')], 'Draft Lines')
confirmed_lines = fields.One2many('my_obj.obj', 'my_obj_id', domain=[('state', '=', 'confirm')], 'Confirmed Lines')
cancelled_lines = fields.One2many('my_obj.obj', 'my_obj_id', domain=[('state', '=', 'cancel')], 'Cancelled Lines')
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: 8/21/16, 1:30 AM|
|Seen: 1190 times|
|Last updated: 8/22/16, 1:53 AM|