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 ???
此问题已终结
2
回复
11517
查看
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"
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
|
3
2月 24
|
4092 | ||
|
|
0
4月 24
|
30 | ||
|
|
2
7月 18
|
17417 | ||
|
|
1
6月 25
|
7920 | ||
|
|
0
3月 25
|
2521 |