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

Hello Guys:

Please, i have a problem with context defined in xml view.

Need Help please and thanks a lot in advance :)

Here is my code:

    <field name="domain">[('mail_validated','=',False),'|',(('mail_removed','=',False),('mail_duree','&lt;=',15))]</field>

And Here is what i get :

AssertionError: This domain is syntactically not correct: [[u'mail_validated', u'=', False], u'|', [[u'mail_removed', u'=', False], [u'mail_duree', u'<=', 15]]]

Awatar
Odrzuć

<field name="domain">['|', '|', ('mail_validated','=',False),(('mail_removed','=',False),('mail_duree','&lt;=',15))]</field>

Autor

it doesnt work :/ the same error

AssertionError: This domain is syntactically not correct: [u'|', u'|', [u'mail_validated', u'=', False], [[u'mail_removed', u'=', False], [u'mail_duree', u'<=', 15]]]

Autor Najlepsza odpowiedź

Hi everybody!!!

Here is the solution to my problem:

Instead of using domain i have used filter_domain.

<field name="filter_domain">['|', ('mail_validated','=',False),(('mail_removed','=',False),('period_mail','&lt;=',15))]</field>

Best Regards.

Awatar
Odrzuć
Najlepsza odpowiedź

Try this <field name="domain">[('mail_validated','=',False),'|',('mail_removed','=',False),('mail_duree','&lt;=',15)]</field>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lis 23
7509
2
lut 21
3587
7
lut 19
13745
6
gru 17
8907
5
paź 22
13816