Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
10317 Zobrazení

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]]]

Avatar
Zrušit

<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 Nejlepší odpověď

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.

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
lis 23
7557
2
úno 21
3617
7
úno 19
13768
6
pro 17
8925
5
říj 22
13857