[FIX] crm: mass assign were not always deduplicating
[odoo/odoo.git] / addons / crm / wizard / crm_lead_to_opportunity_view.xml
index 130aa41..58fbe24 100644 (file)
@@ -59,9 +59,9 @@
                         <field name="section_id" groups="base.group_multi_salesteams"/>
                         <field name="user_ids" widget="many2many_tags"/>
                     </group>
-                    <label for="opportunity_ids" string="Leads with existing duplicates (for information)" help="Leads that you selected that have duplicates. If the list is empty, it means that no duplicates were found"/>
+                    <label for="opportunity_ids" string="Leads with existing duplicates (for information)" help="Leads that you selected that have duplicates. If the list is empty, it means that no duplicates were found" attrs="{'invisible': [('deduplicate', '=', False)]}"/>
                     <group attrs="{'invisible': [('deduplicate', '=', False)]}">
-                        <field name="opportunity_ids" colspan="4" nolabel="1">
+                        <field name="opportunity_ids" colspan="4" nolabel="1" readonly="1">
                             <tree create="false" delete="false">
                                 <field name="create_date"/>
                                 <field name="name"/>