Skip to Content
Menu
This question has been flagged
4 Replies
9128 Views

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
Discard

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

Author

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

Author Best Answer

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
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 23
5933
2
Feb 21
2674
7
Feb 19
12276
6
Dec 17
7602
5
Oct 22
12125