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 am trying to customize the Product view via inherited view. Currently, there are a few tabs in the Product page: Information/Procurements/Inventory/Sales/Accounting.
We do not need the Sales for now. To avoid the users' confusion, I would like to hide the tab. At first, I tried to delete the page, the system gives error as it seems that other page calls for some information from this tab. Hence I am not able to delete the page. Thus I am thinking whether it's possible to hide the page. I tried to use invisible =1 in the editing tags, but it did not work. Please kindly advise how I could achieve this.
Thanks a lot in advance!
<record model="ir.ui.view" id="moleac_product_form_view"> <field name="name">Product Inherited View</field> <field name="model">product.product</field> <field name="inherit_id" ref="product.product_normal_form_view" /> <field name="arch" type="xml"> <data> <!--Edit Tab Sales--> <xpath expr="/form/sheet/notebook/page[@string='Sales']" invisiable="1"/> </data> </field> </record>
This is the final solution:
<record model="ir.ui.view" id="view_partner_form_jolibelle2"> <field name="name">res.partner.form.jolibelle2</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form" /> <field name="arch" type="xml"> <page string="Sales & Purchases" position="attributes"> <attribute name='invisible'>1</attribute> </page> </field> </record>
And in this way, it works....
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/10/13, 1:50 AM|
|Seen: 8092 times|
|Last updated: 8/12/16, 5:40 PM|