Skip to content

Commit 0fbe0d9

Browse files
committed
[IMP]partner_creation_access: Add access rule to allow users with sales user access to edit partners and send messages/notes, but not to create contacts.
closes #143 X-original-commit: 5d3553c Signed-off-by: Luciano Esperlazza <les@adhoc.inc>
1 parent e6cb979 commit 0fbe0d9

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

partner_creation_access/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Partner Creation Access
1616

1717
This module introduces a new access rule to allow users to create partners only with the 'Create Contact' access.
1818
Only the public user doesn't apply to this rule, so it can create partners without any access.
19+
Also allows users with sales user access to edit partners and send messages/notes, but not to create contacts.
1920

2021
Installation
2122
============

partner_creation_access/__manifest__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
##############################################################################
2020
{
2121
"name": "Partner Creation Access",
22-
"version": "19.0.1.0.0",
22+
"version": "19.0.1.1.0",
2323
"category": "Partner",
2424
"author": "ADHOC SA",
2525
"website": "www.adhoc.com.ar",
2626
"license": "AGPL-3",
27-
"depends": ["base", "contacts"],
28-
"data": [],
27+
"depends": ["base", "contacts", "sale"],
28+
"data": [
29+
"security/ir.model.access.csv",
30+
],
2931
"installable": True,
3032
"auto_install": False,
3133
"application": False,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2+
access_res_partner,res.partner.no.creation.user,base.model_res_partner,sales_team.group_sale_salesman,1,1,0,0

0 commit comments

Comments
 (0)