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 ???
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
7564
瀏覽次數
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
|
2271 | ||
|
0
4月 24
|
30 | ||
|
2
7月 18
|
14939 | ||
|
1
6月 25
|
3309 | ||
|
0
3月 25
|
781 |