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
回复
7525
查看
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
|
2248 | ||
|
0
4月 24
|
30 | ||
|
2
7月 18
|
14928 | ||
|
1
6月 25
|
3289 | ||
|
0
3月 25
|
774 |