On 05/02/13 17:12 -0300, Angel Arancibia wrote:
> Hi,
> I'm trying to apply some domains restrictions in a view, and i'm getting
> a SAXParseException.
>
> The code is:
>
> <record model="ir.action.act_window"
> id="act_patient_lab_detail_form1">
> <field name="name">Lab Details</field>
> <field name="res_model">gnuhealth.lab</field>
> <field name="domain">[('patient', '=', Eval('patient')),
> ('test', '=' , Eval('laboratory')), ('date_analysis', '>=',
> Eval('start_date')), ('date_analysis', '<=', Eval('end_date'))]</field>
> </record>
>
> The problem is in the last restriction, the '<=' operator. If i change it
> to '=' or '<=' .. it works as expected. I checked the documentation [1] but
> it is supposed to work.Try to use the encoded version: < and > -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpFVYIfkW16r.pgp
Description: PGP signature
