コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
6500 ビュー

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
1931
0
4月 24
30
2
7月 18
14546
1
6月 25
2461
0
3月 25
450