Odoo Help


hiding inherited tab

on 7/13/16, 1:55 AM 542 views

hi all,

i'm trying to hide product-->Notes tab in my inherited module, tab is getting hide but the problem is it getting hidden in main product module tab also.

It should not getting hidden in main product module. Am using odoo9

Code used in xml is:

<record id="partner_primary_vehicle_product_view" model="ir.ui.view">
<field name="name">Vehicle Product</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<!--field name="mode">primary</field-->
<field name="arch" type="xml">
<xpath expr="//notebook/page[5]" position="attributes">
<attribute name="invisible">True</attribute>

Can we make tab should be visible in base product and the tab should hide in inherited product?

Axel Mendoza
On 7/13/16, 6:03 AM

You need to extend the views for product.product and product.template, search for the form views of both models

thank you axel, how to extend?

on 7/13/16, 6:05 AM

extend or inherit, for me is the same, like you do for the view posted, but need to do it for both module views

Axel Mendoza
on 7/13/16, 6:07 AM

like you are telling to write xpath for inherited module?

on 7/13/16, 6:09 AM

no, view inheritance with xpaths for the views of product.product and product.template. Actually you are doing it just for product.template

Axel Mendoza
on 7/13/16, 6:11 AM

oh ok ok, i will try thank you axel

on 7/13/16, 6:16 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/13/16, 1:55 AM
Seen: 542 times
Last updated: 7/13/16, 6:03 AM