Odoo Help

Welcome!

This community 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.

1

How can we make a tab inside a form invisible in xml openerp [Closed]

xml
By
Pravitha
on 6/25/13, 8:07 AM 1,534 views

The Question has been closed

by
Keyur
on 09/27/2013 11:09:15

Hello all, In supplier invoice i have added a tab called my tab. I want make it visible only when my_details checkbox in supplier invoice form is True. How can do this in openerp 7? can i do this with attrs="{'invisible':

3

Keyur

--Keyur--
1165
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
On 6/25/13, 8:22 AM

Hi Pravitha,

Yes ofcourse you can do this with attrs. You just need to write like this in your xml file,

<page string="my tab" attrs="{'invisible':[('my_details', '=', False)]}">

Thanks.

where should i give this?

Pravitha
on 6/25/13, 8:32 AM

thanks Keyur, that worked i gave something like this in code so didt work <page string="my tab" attrs="{'invisible':[('my_details', '=', 'False')]}">. Now its working fine.

Pravitha
on 6/25/13, 8:43 AM

There is no quotes for False. The correct one was <page string="my tab" attrs="{'invisible':[('my_details', '=', False)]}">

Pravitha
on 6/25/13, 8:49 AM
1

Ghanshyam Prajapati

--Ghanshyam Prajapati--
1377
| 4 4 8
Pune, India
--Ghanshyam Prajapati--
OpenERP Developer
Ghanshyam Prajapati
On 6/25/13, 8:57 AM

Hi Pravithha,

Try Following,

<page string="Your Tab Name" attrs="{'invisible':[('my_details','=', True)]}" >

Hope this work for you.

thanks Ghanshyam for the help my prob got solved. The code is <page string="my tab" attrs="{'invisible':[('my_details', '=', False)]}">

Pravitha
on 6/25/13, 9:00 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/25/13, 8:07 AM
Seen: 1534 times
Last updated: 3/16/15, 8:10 AM