Odoo Help

0

does anyone here knows how to hide page/tab??

By
Alcaline
on 7/5/14, 4:22 AM 650 views

does anyone here knows how to hide page/tab??

for example: i have this field 'project': fields.selection([('project1','Porject1'),('project2','Project2'),('project3','Project3')],'Project'), Inside this view there are 4 Page/Tab naming PAGE FOR PROJECT 1, PAGE FOR PROJECT 2,

PAGE FOR PROJECT 3, and PAGE FOR PROJECT 4. 

if I select: PROJECT1 the PAGE FOR PROJECT 3 and PAGE FOR PROJECT 4 will automatically hide and the remaining 2 page is the only can see it. How can i do this? any other suggestion please.. by the all of my page is INHERITED..

 

what about if it is INHERITED??

Alcaline
on 7/5/14, 4:46 AM
1
Vasiliy Birukov
On 7/5/14, 4:40 AM

Use attr inside each tag page, like:

<page string="Porject1" attrs="{'invisible': [('project', 'in', ['project2','project3'])]}"/>

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

Question tools

1 follower(s)

Stats

Asked: 7/5/14, 4:22 AM
Seen: 650 times
Last updated: 3/16/15, 8:10 AM