[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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user