Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4889 Vizualizări

I have some code:

<tree colors="red:value_id!='' and mandatory==True">
             <field name="mandatory"/>
             <field name="attribute_id"/>
            <field name="value_id"/>
</tree>

Whatever if value_id is set, or not it is always true! Did I something wrong?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Ok. I solved it.

<tree colors="red: not value_id and mandatory">
         <field name="mandatory"/>
         <field name="attribute_id"/>
        <field name="value_id"/>
</tree>

instead != I should use 'not'

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
6
ian. 19
9409
3
apr. 17
10444
2
apr. 25
9207
2
ian. 25
2966
1
iul. 24
2670