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.
What do i need to do besides defining a customized view for a user (under user interface) to get that user to see it instead of the original one?
I need to remove many fields and add 2 new ones on that view.
Or should i do it inheriting a view? That way, i know how to add fields, but not remove them.
I hope that the best way is to inherit the view.
To replace the field, use the following code example...
<record model="ir.ui.view" id="view_partner_form2">
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="Field1_name_to_replace" position="replace"/>
<field name="Field2_name_to_replace" position="replace"/>
<Code to add the fields>
In the above Code,
<field name="X" position="replace"/> remove the X from view.
For more details please refer the https://doc.odoo.com/6.0/developer/2_6_views_events/views/view_inheritence/
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: 11/3/14, 8:21 AM|
|Seen: 2456 times|
|Last updated: 3/16/15, 8:10 AM|