Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4689 Widoki

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?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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'

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
6
sty 19
9154
3
kwi 17
10156
2
kwi 25
8961
2
sty 25
2644
1
lip 24
2369