Skip to Content
Menu
This question has been flagged
2 Replies
7545 Rodiniai

i want to add this condition in a button 
invisible="['|', ('state', '!=', 'draft'), ('initial_invoice', '=', True)]"

It is not working for odoo17, How to make the or condition work ???

Portretas
Atmesti
Best Answer

Try like this.

invisible="state != 'draft' or initial_invoice = True"
Portretas
Atmesti

its work for me,thank you

Best Answer

You can try this. -> invisible="condition 1 or condition 2"

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
vas. 24
2254
0
bal. 24
30
2
liep. 18
14932
1
birž. 25
3302
0
kov. 25
776