diff --git a/account_payment_security/__init__.py b/account_payment_security/__init__.py new file mode 100644 index 0000000..e19abbd --- /dev/null +++ b/account_payment_security/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Account Payment Security module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/account_payment_security/__openerp__.py b/account_payment_security/__openerp__.py new file mode 100644 index 0000000..39cc172 --- /dev/null +++ b/account_payment_security/__openerp__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Account Payment Security module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + 'name': 'Account Payment Security', + 'version': '1.0', + 'category': 'Accounting & Finance', + 'license': 'AGPL-3', + 'summary': 'Only members of Account Payment can create/write on bank accounts', + 'description': """ +Account Payment Security +======================== + +By default in OpenERP, members of the group *Contact Creation* can create and modify bank accounts ; this can be a risk, as explained in this mail : https://lists.launchpad.net/openerp-community/msg01035.html + +With this module, only the members of the group *Accounting / Payments* can create and modify bank accounts. Also, some rights on the configuration of bank accounts (res.partner.bank.type and res.partner.bank.type.field) are moved from the group *Contact Creation* to *Financial Manager*. + +Please contact Alexis de Lattre from Akretion for any help or question about this module. +""", + 'author': 'Akretion', + 'depends': ['account_payment'], + 'data': [ + 'security/ir.model.access.csv', + 'security/payment_security.xml', + ], + 'active': False, +} diff --git a/account_payment_security/security/ir.model.access.csv b/account_payment_security/security/ir.model.access.csv new file mode 100644 index 0000000..685b0ba --- /dev/null +++ b/account_payment_security/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_res_partner_bank_account_payment,Full access on res.partner.bank to Account Payment,base.model_res_partner_bank,account_payment.group_account_payment,1,1,1,1 +access_res_bank_account_payment,Full access on res.bank to Account Payment,base.model_res_bank,account_payment.group_account_payment,1,1,1,1 +access_res_partner_bank_type_account_manager,Full access on res.partner.bank.type to Financial Manager,base.model_res_partner_bank_type,account.group_account_manager,1,1,1,1 +access_res_partner_bank_type_field_account_manager,Full access on res.partner.bank.type.field to Financial Manager,base.model_res_partner_bank_type_field,account.group_account_manager,1,1,1,1 diff --git a/account_payment_security/security/payment_security.xml b/account_payment_security/security/payment_security.xml new file mode 100644 index 0000000..f04b4ca --- /dev/null +++ b/account_payment_security/security/payment_security.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + +