[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health] Record Rules
From: |
Cédric Krier |
Subject: |
Re: [Health] Record Rules |
Date: |
Tue, 31 May 2016 08:33:06 +0200 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On 2016-05-31 09:55, Khurram Shahzad wrote:
> Dear Cedric,
>
> Thanks for the details.
>
> I have created the following domain rule
>
> [["healthprof.name.internal_user.id", "=", [Eval("user.id",-1)]]]
>
> but it is failing. The problem is with [Eval("user.id",-1)]. If I replace
> it with a constant it works fine.
>
> Can you help me out?
As I said, you must use the jsonified version of Eval.
One way is to use the result of the encoder:
http://doc.tryton.org/4.0/trytond/doc/ref/pyson.html#trytond.pyson.PYSONEncoder.encode
--
Cédric Krier - B2CK SPRL
Email/Jabber: address@hidden
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/