Browse Source

only users beloning to group 'Manually' should be able to merge partners from the partner list views (action 'Merge automatically') Use <record id="crm.action_partner_merge"... to change only affected field.

14.0
jbeficent 9 years ago
committed by Carlos Roca
parent
commit
4678644851
  1. 42
      partner_deduplicate_acl/wizards/partner_merge_view.xml

42
partner_deduplicate_acl/wizards/partner_merge_view.xml

@ -3,29 +3,25 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<openerp>
<data>
<data>
<record id="base_partner_merge_automatic_wizard_form" model="ir.ui.view">
<field name="name">Restrict automatic merge access</field>
<field name="model">base.partner.merge.automatic.wizard</field>
<field
name="inherit_id"
ref="crm.base_partner_merge_automatic_wizard_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='automatic_process_cb']"
position="attributes">
<attribute name="groups">
crm_deduplicate_acl.group_automatically
</attribute>
</xpath>
<xpath expr="//button[@name='update_all_process_cb']"
position="attributes">
<attribute name="groups">
crm_deduplicate_acl.group_automatically
</attribute>
</xpath>
</field>
</record>
<record id="base_partner_merge_automatic_wizard_form" model="ir.ui.view">
<field name="name">Restrict automatic merge access</field>
<field name="model">base.partner.merge.automatic.wizard</field>
<field name="inherit_id" ref="crm.base_partner_merge_automatic_wizard_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='automatic_process_cb']" position="attributes">
<attribute name="groups">crm_deduplicate_acl.group_automatically</attribute>
</xpath>
<xpath expr="//button[@name='update_all_process_cb']" position="attributes">
<attribute name="groups">crm_deduplicate_acl.group_automatically</attribute>
</xpath>
</field>
</record>
</data>
<record id="crm.action_partner_merge" model="ir.actions.act_window">
<field name="groups_id">group_manually</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save