How can I define a domain that evaluates a reference field?
For example, if you want to create an action keyword to open the stock
moves related to a shipment out, the action window could be:
<record model="ir.action.act_window" id="act_moves_of_shipment">
<field name="name">Moves</field>
<field name="res_model">stock.move</field>
<field name="domain">[('shipment', '=',
Eval('active_id'))]</field>
</record>
but this does not work because the shipment field in stock moves is a
reference field, so they values are like 'shipment.out,3'. PYSON does
not have any string concatenation operator to join 'shipment.out' with
the Eval('active_id').
Maybe there is other way to solve this issue.
--
Jordi Esteve
Consultor Zikzakmedia SL
[email protected]
Mòbil 679 170 693
Zikzakmedia SL
St. Jaume, 9, baixos, 2a
08720 Vilafranca del Penedès
Tel 93 890 2108