El 18/03/15 a les 14:02, Jean C ha escrit:

2015-03-18 14:00 GMT+01:00 jmartin <[email protected]
<mailto:[email protected]>>:

    <field name="domain">[('origin','=', 'account.statement,%s' %
    Eval('active_id'))]</field>


For reference field, you can use a fourth parameter in a domain with the
model name to match against :

<field name="domain">[('origin.id <http://origin.id>','=',
Eval('active_id'), 'account.statement')]</field>

Or more generic:

[('origin.id>','=', Eval('active_id'), Eval('active_model')]

And you can also use active_ids with in operator:

[('origin.id>','in', Eval('active_ids'), Eval('active_model')]

So when using it with a relate multiple records can be selected.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to