Odoo Help


hiding inherited tab

on 7/13/16, 1:55 AM 734 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

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

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: 734 times
Last updated: 7/13/16, 6:03 AM