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 wanted to create dummy one2many functional fields.
In form view, I want to display one2many data in sale order form, by processing sale order lines.
I want to manage a functional field, like one2many and how processed data with few field names and values ?
How can we do it ?
As variant, you can define dummy object (table) with needed field for display in form view.
Then you can define new field in sale order object like:
'view_line_ids': fields.function(_get_lines, relation="YOU DUMMY OBJECT", method=True, type="one2many"),
And in method
_get_lines return calculated records in format of
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: 6/13/13, 11:45 AM|
|Seen: 2150 times|
|Last updated: 3/16/15, 8:10 AM|