2015-03-18 14:13 GMT+01:00 Sergi Almacellas Abellana <[email protected]>:
> 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. > Thank you Sergi. I'll do this way. > > -- > Sergi Almacellas Abellana > www.koolpi.com > Twitter: @pokoli_srk > -- Jesús Martín Zikzakmedia SL C/ de Sant Jaume, 9, baixos, 2ª 08720 Vilafranca del Penedès ☏ 93 890 21 08
