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 ???
This question has been flagged
2
Respostes
11397
Vistes
Try like this.
invisible="state != 'draft' or initial_invoice = True"
its work for me,thank you
You can try this. -> invisible="condition 1 or condition 2"
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
|
3
de febr. 24
|
3979 | ||
|
|
0
d’abr. 24
|
30 | ||
|
|
2
de jul. 18
|
17290 | ||
|
|
1
de juny 25
|
7784 | ||
|
|
0
de març 25
|
2434 |