Skip to content
Snippets Groups Projects
Commit 876634b1 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] crm: merge of partners twice in the action menu

The link to open the merging partners wizard was duplicated
in the action menu:
 - Once as "Deduplicate Contact",
 - Once as "Merge selected contacts".

This is due to the revision 30a7ef80,
converting the
`<record model="ir.actions.act_window"...`
to an
`<act_window`
which creates an action binding automatically.

No action binding must be created for this window
action, as there is already another one,
the link to this wizard is already in the
partners action menu, thanks to the `act_window`
`action_partner_merge`.

Besides, the `'default_state': 'option'` seems useless,
as this is the default value set in the model directly.
On the opposite, removing the `active_test` (as done in
the revision mentioned above) could be armful. We
therefore re-set it.

opw-669688
parent 9187dc15
No related branches found
No related tags found
No related merge requests found
......@@ -2,16 +2,14 @@
<openerp>
<data>
<act_window id="action_partner_deduplicate"
res_model="base.partner.merge.automatic.wizard"
src_model="res.partner"
target="new"
multi="True"
key2="client_action_multi"
view_mode="form"
name="Deduplicate Contact"
context="{'default_state': 'option'}"
/>
<record model="ir.actions.act_window" id="action_partner_deduplicate">
<field name="name">Deduplicate Contacts</field>
<field name="res_model">base.partner.merge.automatic.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{'active_test': False}</field>
</record>
<record model='ir.ui.view' id='base_partner_merge_automatic_wizard_form'>
<field name='name'>base.partner.merge.automatic.wizard.form</field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment