Odoo Help

1
2
Avatar

AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
2140
| 4 5 8
Bronx, United States
--AJ Schrafel Paper Corp--

Exploring OpenERP for business

AJ Schrafel Paper Corp
On 9/27/13, 12:09 PM

You want to hide it when state is done OR audit is false?

audit is a boolean, keep it simple make it = False instead of <> True

Second add the OR | operator at the front, the default operator between tuples is AND & in this case.

['|',('state','=','done'),('audit','=', False)]

Perfect. I added the OR operator and it works as desired. Now I can leave the boolean set for determining if a move was completed without the required audit being performed. Excellent! Thank you so much for the assistance!!!!

mike
on 9/27/13, 12:53 PM
1
Sehrish
On 3/8/18, 11:19 PM

Try this

<button name="your_button_name"  string="My Button"  type="object" class="oe_highlight" attrs="{'invisible':['|',('state','=','done'),('audit','=', False)]}"/>

About This Community

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

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

0 follower(s)

Stats

Asked: 9/27/13, 11:51 AM
Seen: 6237 times
Last updated: 3/8/18, 11:19 PM