Odoo Help
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.
How to disable a page string in one menu and to enable in another menu ?
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.
For instance lets assume there are 4 pages -
- Internal Notes
- Sales & Purchases
- Accounting
- History
To hide "History" page, try using attrs in XML file as below:
<page string="History" attrs="{'invisible': [('customer','=',False)]}">
.
.
.
</page>
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>
</xpath>
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 5/27/14, 7:55 AM |
Seen: 935 times |
Last updated: 3/16/15, 8:10 AM |