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

Hello everybody!!

Who can help me please know how to make the attribute 'invisble' with two conditionsµ.

Here is my code:

<button name="cnss_generate" icon="fa-pencil-square-o" type="object" string="" attrs="{'invisible':[('period','!=',1),('state','!=', 'draft')]}"/>


アバター
破棄
最善の回答

if you have Or Condition Try this

<button name="cnss_generate" icon="fa-pencil-square-o" type="object" string="" attrs="{'invisible':['|',('period','=',False),('state','!=', 'draft')]}"/>

For AND Condition between them then try this

<button name="cnss_generate" icon="fa-pencil-square-o" type="object" string="" attrs="{'invisible':[('period','=',False),('state','!=', 'draft')]}"/>

アバター
破棄
最善の回答

Hi,

<button name="cnss_generate" icon="fa-pencil-square-o" type="object" string="" attrs="{'invisible':[('period','!=',1),('state','!=', 'draft')]}"/>


It is enough to make the attribute 'invisible' with two conditions.

アバター
破棄