跳至內容
選單
此問題已被標幟
2 回覆
7564 瀏覽次數

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
2271
0
4月 24
30
2
7月 18
14939
1
6月 25
3309
0
3月 25
781