Odoo Help

1

1
3 Answers
2
Avatar

AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
2168
| 7 5 10
Bronx, United States
--AJ Schrafel Paper Corp--

Exploring OpenERP for business

AJ Schrafel Paper Corp
27.09.13, 12:09

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)]
1 Comment
mike
27.09.13, 12:53

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!!!!

1
Sehrish
08.03.18, 23:19

Try this

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

Ask a Question
Writer
443
mike
Keep Informed
0 follower(s)
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