Kevin Khao
5 years ago
committed by
Carlos Roca
12 changed files with 73 additions and 62 deletions
-
11partner_deduplicate_acl/README.rst
-
2partner_deduplicate_acl/__init__.py
-
4partner_deduplicate_acl/__manifest__.py
-
7partner_deduplicate_acl/i18n/partner_deduplicate_acl.pot
-
1partner_deduplicate_acl/readme/CONTRIBUTORS.rst
-
22partner_deduplicate_acl/security/partner_deduplicate_acl_security.xml
-
7partner_deduplicate_acl/static/description/index.html
-
4partner_deduplicate_acl/tests/test_partner_deduplicate_acl.py
-
21partner_deduplicate_acl/views/base_partner_merge_view.xml
-
2partner_deduplicate_acl/wizards/__init__.py
-
2partner_deduplicate_acl/wizards/partner_merge.py
-
52partner_deduplicate_acl/wizards/partner_merge_view.xml
@ -1,3 +1,3 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
from . import wizards |
from . import wizards |
@ -1,35 +1,29 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- © 2016 Tecnativa S.L. - Jairo Llopis |
<!-- © 2016 Tecnativa S.L. - Jairo Llopis |
||||
© 2016 Tecnativa S.L. - Vicent Cubells |
© 2016 Tecnativa S.L. - Vicent Cubells |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|
||||
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). --> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<!-- New user group category --> |
<!-- New user group category --> |
||||
<record id="category" model="ir.module.category"> |
<record id="category" model="ir.module.category"> |
||||
<field name="name">Deduplicate Contacts</field> |
<field name="name">Deduplicate Contacts</field> |
||||
</record> |
</record> |
||||
|
|
||||
<!-- New user groups --> |
<!-- New user groups --> |
||||
<record id="group_manually" model="res.groups"> |
<record id="group_manually" model="res.groups"> |
||||
<field name="name">Manually</field> |
<field name="name">Manually</field> |
||||
<field name="category_id" ref="category"/> |
|
||||
|
<field name="category_id" ref="category" /> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="group_automatically" model="res.groups"> |
<record id="group_automatically" model="res.groups"> |
||||
<field name="name">Automatically</field> |
<field name="name">Automatically</field> |
||||
<field name="category_id" ref="category"/> |
|
||||
<field name="implied_ids" eval="[(4, ref('group_manually'))]"/> |
|
||||
|
<field name="category_id" ref="category" /> |
||||
|
<field name="implied_ids" eval="[(4, ref('group_manually'))]" /> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="group_unrestricted" model="res.groups"> |
<record id="group_unrestricted" model="res.groups"> |
||||
<field name="name">Without restrictions</field> |
<field name="name">Without restrictions</field> |
||||
<field name="category_id" ref="category"/> |
|
||||
<field name="implied_ids" eval="[(4, ref('group_automatically'))]"/> |
|
||||
|
<field name="category_id" ref="category" /> |
||||
|
<field name="implied_ids" eval="[(4, ref('group_automatically'))]" /> |
||||
</record> |
</record> |
||||
|
|
||||
<!-- Respect previous behavior --> |
<!-- Respect previous behavior --> |
||||
<record id="base.group_system" model="res.groups"> |
<record id="base.group_system" model="res.groups"> |
||||
<field name="implied_ids" eval="[(4, ref('group_unrestricted'))]"/> |
|
||||
|
<field name="implied_ids" eval="[(4, ref('group_unrestricted'))]" /> |
||||
</record> |
</record> |
||||
|
|
||||
</odoo> |
</odoo> |
@ -1,15 +1,20 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- Copyright 2016 Tecnativa - Jairo Llopis |
<!-- Copyright 2016 Tecnativa - Jairo Llopis |
||||
Copyright 2016 Tecnativa - Vicent Cubells |
Copyright 2016 Tecnativa - Vicent Cubells |
||||
Copyright 2017 Tecnativa - Pedro M. Baeza |
Copyright 2017 Tecnativa - Pedro M. Baeza |
||||
Copyright 2019 Tecnativa - Victor M.M. Torres |
Copyright 2019 Tecnativa - Victor M.M. Torres |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|
||||
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). --> |
||||
<odoo> |
<odoo> |
||||
<menuitem id='base_tools' name='Tools' |
|
||||
parent='contacts.menu_contacts' sequence="24"/> |
|
||||
<menuitem id='partner_merge_automatic_menu' |
|
||||
action='base.action_partner_deduplicate' |
|
||||
groups='group_automatically' |
|
||||
parent='base_tools' |
|
||||
|
<menuitem |
||||
|
id='base_tools' |
||||
|
name='Tools' |
||||
|
parent='contacts.menu_contacts' |
||||
|
sequence="24" |
||||
|
/> |
||||
|
<menuitem |
||||
|
id='partner_merge_automatic_menu' |
||||
|
action='base.action_partner_deduplicate' |
||||
|
groups='group_automatically' |
||||
|
parent='base_tools' |
||||
/> |
/> |
||||
</odoo> |
</odoo> |
@ -1,3 +1,3 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
from . import partner_merge |
from . import partner_merge |
@ -1,27 +1,37 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- Copyright 2016 Tecnativa - Jairo Llopis |
<!-- Copyright 2016 Tecnativa - Jairo Llopis |
||||
Copyright 2016 Tecnativa - Vicent Cubells |
Copyright 2016 Tecnativa - Vicent Cubells |
||||
Copyright 2018 Tecnativa - Pedro M. Baeza |
Copyright 2018 Tecnativa - Pedro M. Baeza |
||||
Copyright 2019 Tecnativa - Victor M.M. Torres |
Copyright 2019 Tecnativa - Victor M.M. Torres |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|
||||
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). --> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<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="base.base_partner_merge_automatic_wizard_form"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<xpath expr="//button[@name='action_start_automatic_process']" position="attributes"> |
|
||||
<attribute name="groups">partner_deduplicate_acl.group_automatically</attribute> |
|
||||
</xpath> |
|
||||
<xpath expr="//button[@name='action_update_all_process']" position="attributes"> |
|
||||
<attribute name="groups">partner_deduplicate_acl.group_automatically</attribute> |
|
||||
</xpath> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="base.action_partner_merge" model="ir.actions.act_window"> |
|
||||
<field name="groups_id" eval="[(4, ref('partner_deduplicate_acl.group_manually'))]"/> |
|
||||
</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="base.base_partner_merge_automatic_wizard_form" /> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath |
||||
|
expr="//button[@name='action_start_automatic_process']" |
||||
|
position="attributes" |
||||
|
> |
||||
|
<attribute |
||||
|
name="groups" |
||||
|
>partner_deduplicate_acl.group_automatically</attribute> |
||||
|
</xpath> |
||||
|
<xpath |
||||
|
expr="//button[@name='action_update_all_process']" |
||||
|
position="attributes" |
||||
|
> |
||||
|
<attribute |
||||
|
name="groups" |
||||
|
>partner_deduplicate_acl.group_automatically</attribute> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<record id="base.action_partner_merge" model="ir.actions.act_window"> |
||||
|
<field |
||||
|
name="groups_id" |
||||
|
eval="[(4, ref('partner_deduplicate_acl.group_manually'))]" |
||||
|
/> |
||||
|
</record> |
||||
</odoo> |
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue