From f9ec54047f12113967785be3a5831b753be4de65 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 3 Sep 2008 20:25:33 +0200 Subject: [PATCH] Improved Security bzr revid: fp@tinyerp.com-20080903182533-bi4u27xqnm2mmhhr --- addons/account/security/account_security.xml | 18 +++--------------- addons/account_payment/__terp__.py | 1 + .../security/account_payment_security.xml | 10 ++++++++++ addons/crm/security/crm_security.xml | 17 +++++++++++------ addons/hr/security/hr_security.xml | 6 ++---- .../security/hr_contract_security.xml | 13 +++++++++---- addons/mrp/security/mrp_security.xml | 14 +++++++++++--- addons/point_of_sale/__terp__.py | 5 ++++- .../security/point_of_sale_security.xml | 13 +++++++++++++ addons/product/security/product_security.xml | 6 ++++-- addons/project/security/project_security.xml | 19 +++++++++++++++---- .../purchase/security/purchase_security.xml | 14 +++++++++++--- addons/sale/security/sale_security.xml | 6 +++++- 13 files changed, 99 insertions(+), 43 deletions(-) create mode 100644 addons/account_payment/security/account_payment_security.xml create mode 100644 addons/point_of_sale/security/point_of_sale_security.xml diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index 626f9529845..1e4ea09fd1e 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -1,25 +1,13 @@ - Financial Invoice + Finance / Invoice - Financial User + Finance / Accountant - Financial Admin - - - - Sale Manager - - - - Project Member - - - - Account Payment + Finance / Administrator diff --git a/addons/account_payment/__terp__.py b/addons/account_payment/__terp__.py index 625ab9048c5..daca4e2f62c 100644 --- a/addons/account_payment/__terp__.py +++ b/addons/account_payment/__terp__.py @@ -40,6 +40,7 @@ """, "demo_xml": [], "update_xml": [ + "security/account_payment_security.xml", "security/ir.model.access.csv", "payment_wizard.xml", "payment_view.xml", diff --git a/addons/account_payment/security/account_payment_security.xml b/addons/account_payment/security/account_payment_security.xml new file mode 100644 index 00000000000..58242d28e1d --- /dev/null +++ b/addons/account_payment/security/account_payment_security.xml @@ -0,0 +1,10 @@ + + + + + + Finance / Payments + + + + diff --git a/addons/crm/security/crm_security.xml b/addons/crm/security/crm_security.xml index 75364d35e53..c62cb923e31 100644 --- a/addons/crm/security/crm_security.xml +++ b/addons/crm/security/crm_security.xml @@ -1,9 +1,14 @@ - + + + + - Customer Executive - Manager + CRM / Manager - - - Customer Executive - User + + + CRM / Administrator - \ No newline at end of file + + + diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml index 4ec02e7aa55..db0f443f48a 100644 --- a/addons/hr/security/hr_security.xml +++ b/addons/hr/security/hr_security.xml @@ -2,13 +2,11 @@ - HR Manager - + HR / Manager - Employee - + HR / User diff --git a/addons/hr_contract/security/hr_contract_security.xml b/addons/hr_contract/security/hr_contract_security.xml index a25f8f23a95..207523804a7 100644 --- a/addons/hr_contract/security/hr_contract_security.xml +++ b/addons/hr_contract/security/hr_contract_security.xml @@ -1,5 +1,10 @@ - - - HR Manager + + + + + + HR / Contracts - \ No newline at end of file + + + diff --git a/addons/mrp/security/mrp_security.xml b/addons/mrp/security/mrp_security.xml index 050fb1bc5f7..32c1697e1d2 100644 --- a/addons/mrp/security/mrp_security.xml +++ b/addons/mrp/security/mrp_security.xml @@ -1,5 +1,13 @@ - + + + + - Production Manager + Manufacturing / Manager - \ No newline at end of file + + Manufacturing / Worker + + + + diff --git a/addons/point_of_sale/__terp__.py b/addons/point_of_sale/__terp__.py index 6f088e8b4a8..68985cb6bc3 100644 --- a/addons/point_of_sale/__terp__.py +++ b/addons/point_of_sale/__terp__.py @@ -20,7 +20,10 @@ Main features : "demo_xml": [], "update_xml": [ "security/ir.model.access.csv", - "pos_report.xml", "pos_wizard.xml", "pos_view.xml", "pos_sequence.xml", "pos_data.xml", "pos_workflow.xml" + "security/point_of_sale_security.xml", + "pos_report.xml", "pos_wizard.xml", + "pos_view.xml", "pos_sequence.xml", + "pos_data.xml", "pos_workflow.xml" ], "installable": True, } diff --git a/addons/point_of_sale/security/point_of_sale_security.xml b/addons/point_of_sale/security/point_of_sale_security.xml new file mode 100644 index 00000000000..30b3cfbee7c --- /dev/null +++ b/addons/point_of_sale/security/point_of_sale_security.xml @@ -0,0 +1,13 @@ + + + + + + Point of Sale / Manager + + + Point of Sale / User + + + + diff --git a/addons/product/security/product_security.xml b/addons/product/security/product_security.xml index ebb84ce07d3..f4e92cc6f38 100644 --- a/addons/product/security/product_security.xml +++ b/addons/product/security/product_security.xml @@ -1,11 +1,13 @@ + - Useability / Product UOS View + Useability / Product UoS View - Product Manager + Product / Manager + diff --git a/addons/project/security/project_security.xml b/addons/project/security/project_security.xml index 44f5c17ea09..0c79a79ebf9 100644 --- a/addons/project/security/project_security.xml +++ b/addons/project/security/project_security.xml @@ -1,5 +1,16 @@ - - - Project Manager + + + + + + Project / Financial Manager - \ No newline at end of file + + Project / Manager + + + Project / User + + + + diff --git a/addons/purchase/security/purchase_security.xml b/addons/purchase/security/purchase_security.xml index f036fc4a837..3b65143718c 100644 --- a/addons/purchase/security/purchase_security.xml +++ b/addons/purchase/security/purchase_security.xml @@ -1,5 +1,13 @@ - + + + + - Purchase Manager + Purchase / Manager - \ No newline at end of file + + Purchase / User + + + + diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index 00936d4ffe8..467a0b6ea23 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -1,8 +1,12 @@ + + + Sale / Manager + - Salesman + Sale / Salesman