Odoo Help


How to disable a page string in one menu and to enable in another menu ?

on 5/27/14, 7:55 AM 963 views

I have one form (eg: res.partner.form) and have two menus (eg: customer & supplier), I have four page string in my res.partner.form .I want all page string  in customer menu form . And three of them in my supplier menu. How can i hide that one page string in the supplier menu ? 


I tried many ways but no hope. Please help me.


Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 5/28/14, 8:12 AM

For instance lets assume there are 4 pages - 

  1. Internal Notes
  2. Sales & Purchases
  3. Accounting
  4. History


To hide "History" page, try using attrs in XML file as below:

<page string="History" attrs="{'invisible': [('customer','=',False)]}">


If you are trying to use a new module to make changes to the page then follow this method:

<xpath expr="//page[@string='History']" position="attributes">
           <attribute name="attrs">{'invisible': [('customer','=',False)]}</attribute>


On 5/28/14, 8:34 AM

Ok. I have no karma to comment the answer. So i just entering as answer. Same i want in another case. Here customer & supplier are two checbox. so we can easily add the attrs. But in my case, no checkboxs, only menu. then how can i hide?

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: 5/27/14, 7:55 AM
Seen: 963 times
Last updated: 3/16/15, 8:10 AM