跳至内容
菜单
此问题已终结
2 回复
7525 查看

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 ???

形象
丢弃
最佳答案

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