From 082ab5d86787bf13717cc6b063727dd15d85d615 Mon Sep 17 00:00:00 2001 From: Anthony Muschang Date: Tue, 2 Dec 2014 16:00:56 +0100 Subject: [PATCH] [CHG] account_voucher_killer: add voucher related menus to group "invoice_voucher_user" --- account_voucher_killer/README.md | 4 +++- account_voucher_killer/__openerp__.py | 2 +- account_voucher_killer/invoice_view.xml | 25 ++++++++++++++++++++++--- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/account_voucher_killer/README.md b/account_voucher_killer/README.md index b41622268..4a09ee2f9 100644 --- a/account_voucher_killer/README.md +++ b/account_voucher_killer/README.md @@ -3,5 +3,7 @@ This add-on disables the "Register Payment" button on customer invoices and the "Pay" button on supplier invoices. +It also disable the menus "Sales Receipts", "Customer Payments", "Purchase Receipts", "Supplier Payments" and "Journal Vouchers". + More precisely, this module adds a group "Use voucher in Invoices" -and only users in that group see these buttons. +and only users in that group see these buttons and menus. diff --git a/account_voucher_killer/__openerp__.py b/account_voucher_killer/__openerp__.py index d38a4e7c0..4c76ab82d 100644 --- a/account_voucher_killer/__openerp__.py +++ b/account_voucher_killer/__openerp__.py @@ -19,7 +19,7 @@ # ############################################################################## -{'name': 'Invoicing voucher killer', +{'name': 'Account voucher killer', 'version': '1.0.0', 'category': 'other', 'author': 'Camptocamp', diff --git a/account_voucher_killer/invoice_view.xml b/account_voucher_killer/invoice_view.xml index 6f6b6d731..7cec41bc8 100644 --- a/account_voucher_killer/invoice_view.xml +++ b/account_voucher_killer/invoice_view.xml @@ -7,11 +7,11 @@ - invoicing_voucher_killer.invoice_voucher_user + account_voucher_killer.invoice_voucher_user - invoicing_voucher_killer.invoice_voucher_user + account_voucher_killer.invoice_voucher_user @@ -23,10 +23,29 @@ - invoicing_voucher_killer.invoice_voucher_user + account_voucher_killer.invoice_voucher_user + + + + + + + + + + + + + + + + + + +