On Nov 2, 6:20 pm, Nicolas Évrard <[email protected]> wrote:
> * Mohammad [2011-11-02 07:54 +0100]:
>
> >Hi Trytoners,
>
> Hello,
>
> >Please recommend a sample code in Tryton which contains ad advanced
> >domain (both AND and OR in the code)
>
> >By following the document for domains [1] in my view the error
> >message appears on the screen.
>
> Which error message ?
> Can you show us your domain ?
Hi Nicolas,
Error doesn't show anything important. Just says "Invalid domain" and
there is an Ok button.
Nothing is available in terminal.
Regarding the domain,
Domain = A and (B or C)
A is :
("state", "=", "lead")
B is:
("employee_copy", "=", Get(Eval('context', {}), 'employee', False))
C is:
("team_internal.employee", "=", Get(Eval('context', {}), 'employee',
False))
<field name="domain">['AND',[("state", "=", "lead")],
['OR',("employee_copy", "=", Get(Eval('context', {}),
'employee', False)),
("team_internal.employee", "=", Get(Eval('context', {}),
'employee', False))]]
</field>
Note that each one is working well separately and putting something
like [A,B,C] is also working.(AND logic).
Thanks.
> --
> Nicolas Évrard
>
> B2CK SPRL
> rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> E-mail/Jabber: [email protected]
> Website:http://www.b2ck.com/
--
[email protected] mailing list