From f5814eb3c26d56fd42ec5ac9767717e27ad933cf Mon Sep 17 00:00:00 2001 From: Cristian Salamea Date: Fri, 22 Jun 2018 12:56:04 -0500 Subject: [PATCH] [10.0][MIG] payment killer migration (#480) --- account_voucher_killer/README.rst | 25 ++++----- account_voucher_killer/__manifest__.py | 18 +++--- account_voucher_killer/invoice_data.xml | 7 --- account_voucher_killer/invoice_view.xml | 55 ------------------- .../security/invoice_data.xml | 5 ++ account_voucher_killer/view/invoice_view.xml | 42 ++++++++++++++ 6 files changed, 66 insertions(+), 86 deletions(-) delete mode 100644 account_voucher_killer/invoice_data.xml delete mode 100644 account_voucher_killer/invoice_view.xml create mode 100644 account_voucher_killer/security/invoice_data.xml create mode 100644 account_voucher_killer/view/invoice_view.xml diff --git a/account_voucher_killer/README.rst b/account_voucher_killer/README.rst index 12136fcbd..867f927b1 100644 --- a/account_voucher_killer/README.rst +++ b/account_voucher_killer/README.rst @@ -1,31 +1,31 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg :alt: License: AGPL-3 - -Prevent the usage of voucher from invoices -========================================== + +Prevent the usage of payments from invoices +=========================================== This add-on disables the "Register Payment" button on customer invoices and the "Pay" button on supplier invoices. -It also disables the voucher-related menus entries such as -"Sales Receipts", "Customer Payments", "Purchase Receipts", -"Supplier Payments" and "Journal Vouchers", "Sales Receipts Analysis". +It also disables the payments-related menus entries such as +"Customer Payments", "Supplier Payments" -More precisely, this module adds a group "Use voucher in Invoices" +More precisely, this module adds a group "Payments for Invoices" and only users in that group see these buttons and menus. Installation ============ This module depends on : -* account_voucher + + * account This modules are parts of the OCA/bank-payment suite. Configuration ============= -There is nothing to configure. +Use new group Payment for Invoices to allow make payments Usage ===== @@ -37,11 +37,6 @@ For further information, please visit: * https://www.odoo.com/forum/help-1 -Known issues / Roadmap -====================== - - * ... - Bug Tracker =========== @@ -60,6 +55,7 @@ Contributors * Stéphane Bidoul * Anthony Muschang * Yannick Vaucher +* Cristian Salamea Maintainer ---------- @@ -73,4 +69,3 @@ This module is maintained by the OCA. OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. To contribute to this module, please visit http://odoo-community.org. - diff --git a/account_voucher_killer/__manifest__.py b/account_voucher_killer/__manifest__.py index 5a7e08d65..42382759b 100644 --- a/account_voucher_killer/__manifest__.py +++ b/account_voucher_killer/__manifest__.py @@ -19,16 +19,16 @@ # ############################################################################## -{'name': 'Accounting voucher killer', - 'version': '8.0.1.0.0', +{'name': 'Accounting Payment Access', + 'version': '10.0.1.0.0', 'category': 'other', 'author': "Camptocamp,Odoo Community Association (OCA)", - 'website': 'http://www.camptocamp.com', + 'website': 'https://github.com/OCA/bank-payment', 'license': 'AGPL-3', - 'depends': ['account_voucher'], - 'data': ['invoice_data.xml', - 'invoice_view.xml'], - 'test': [], - 'installable': False, - 'active': False, + 'depends': ['account'], + 'data': [ + 'security/invoice_data.xml', + 'view/invoice_view.xml' + ], + 'installable': True, } diff --git a/account_voucher_killer/invoice_data.xml b/account_voucher_killer/invoice_data.xml deleted file mode 100644 index 018701094..000000000 --- a/account_voucher_killer/invoice_data.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - Use voucher in Invoices - - - diff --git a/account_voucher_killer/invoice_view.xml b/account_voucher_killer/invoice_view.xml deleted file mode 100644 index a55224160..000000000 --- a/account_voucher_killer/invoice_view.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - Hide voucher in invoice - account.invoice - - - - account_voucher_killer.invoice_voucher_user - - - account_voucher_killer.invoice_voucher_user - - - - - - Hide voucher in supplier invoice - account.invoice - - - - account_voucher_killer.invoice_voucher_user - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/account_voucher_killer/security/invoice_data.xml b/account_voucher_killer/security/invoice_data.xml new file mode 100644 index 000000000..30b992799 --- /dev/null +++ b/account_voucher_killer/security/invoice_data.xml @@ -0,0 +1,5 @@ + + + Payments for Invoices + + diff --git a/account_voucher_killer/view/invoice_view.xml b/account_voucher_killer/view/invoice_view.xml new file mode 100644 index 000000000..16d2f3445 --- /dev/null +++ b/account_voucher_killer/view/invoice_view.xml @@ -0,0 +1,42 @@ + + + Hide payment in invoice + account.invoice + + + + account_voucher_killer.invoice_payment_user + + + account_voucher_killer.invoice_payment_user + + + + + + Hide Payment in supplier invoice + account.invoice + + + + account_voucher_killer.invoice_payment_user + + + + + + + + + + + + + + + + +