[FIX] crm: update domain to new views

When evaluating a domain, each x2many in the evaluation context is
actually replaced by a list of ids.  However, previously, it was actually a
list of commands.  The list of ids is much better, since it does not
depends on the exact commands that were generated.
This commit is contained in:
Géry Debongnie
2017-10-27 16:00:16 +02:00
parent 8fdac4b6b2
commit f14aab1827
@@ -56,7 +56,7 @@
You can remove contacts from this list to avoid merging them.
</p>
<group col="2">
<field name="dst_partner_id" domain="[('id', 'in', partner_ids and partner_ids[0] and partner_ids[0][2] or False)]" attrs="{'required': [('state', '=', 'selection')]}"/>
<field name="dst_partner_id" domain="[('id', 'in', partner_ids or False)]" attrs="{'required': [('state', '=', 'selection')]}"/>
</group>
<field name="partner_ids" nolabel="1">
<tree string="Partners">