health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] Record Rules


From: Khurram Shahzad
Subject: Re: [Health] Record Rules
Date: Wed, 1 Jun 2016 08:13:13 +0500

No Luck, yet!

On Tue, May 31, 2016 at 11:33 AM, Cédric Krier <address@hidden> wrote:
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/




--
 
Regards,
Khurram.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]