From 93b44a50cc8ddbda31217fa6ba09dfa5017ac74d Mon Sep 17 00:00:00 2001 From: Anthony Muschang Date: Tue, 2 Dec 2014 15:58:57 +0100 Subject: [PATCH 1/3] [CHG] rename "invoicing_voucher_killer" to "account_voucher_killer" --- {invoicing_voucher_killer => account_voucher_killer}/README.md | 0 {invoicing_voucher_killer => account_voucher_killer}/__init__.py | 0 .../__openerp__.py | 0 {invoicing_voucher_killer => account_voucher_killer}/i18n/es.po | 0 .../i18n/invoicing_voucher_killer.pot | 0 .../invoice_data.xml | 0 .../invoice_view.xml | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename {invoicing_voucher_killer => account_voucher_killer}/README.md (100%) rename {invoicing_voucher_killer => account_voucher_killer}/__init__.py (100%) rename {invoicing_voucher_killer => account_voucher_killer}/__openerp__.py (100%) rename {invoicing_voucher_killer => account_voucher_killer}/i18n/es.po (100%) rename {invoicing_voucher_killer => account_voucher_killer}/i18n/invoicing_voucher_killer.pot (100%) rename {invoicing_voucher_killer => account_voucher_killer}/invoice_data.xml (100%) rename {invoicing_voucher_killer => account_voucher_killer}/invoice_view.xml (100%) diff --git a/invoicing_voucher_killer/README.md b/account_voucher_killer/README.md similarity index 100% rename from invoicing_voucher_killer/README.md rename to account_voucher_killer/README.md diff --git a/invoicing_voucher_killer/__init__.py b/account_voucher_killer/__init__.py similarity index 100% rename from invoicing_voucher_killer/__init__.py rename to account_voucher_killer/__init__.py diff --git a/invoicing_voucher_killer/__openerp__.py b/account_voucher_killer/__openerp__.py similarity index 100% rename from invoicing_voucher_killer/__openerp__.py rename to account_voucher_killer/__openerp__.py diff --git a/invoicing_voucher_killer/i18n/es.po b/account_voucher_killer/i18n/es.po similarity index 100% rename from invoicing_voucher_killer/i18n/es.po rename to account_voucher_killer/i18n/es.po diff --git a/invoicing_voucher_killer/i18n/invoicing_voucher_killer.pot b/account_voucher_killer/i18n/invoicing_voucher_killer.pot similarity index 100% rename from invoicing_voucher_killer/i18n/invoicing_voucher_killer.pot rename to account_voucher_killer/i18n/invoicing_voucher_killer.pot diff --git a/invoicing_voucher_killer/invoice_data.xml b/account_voucher_killer/invoice_data.xml similarity index 100% rename from invoicing_voucher_killer/invoice_data.xml rename to account_voucher_killer/invoice_data.xml diff --git a/invoicing_voucher_killer/invoice_view.xml b/account_voucher_killer/invoice_view.xml similarity index 100% rename from invoicing_voucher_killer/invoice_view.xml rename to account_voucher_killer/invoice_view.xml From 082ab5d86787bf13717cc6b063727dd15d85d615 Mon Sep 17 00:00:00 2001 From: Anthony Muschang Date: Tue, 2 Dec 2014 16:00:56 +0100 Subject: [PATCH 2/3] [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 + + + + + + + + + + + + + + + + + + + From 6f2b1da238c7c488eee04d522c7430b29dec7e49 Mon Sep 17 00:00:00 2001 From: Anthony Muschang Date: Wed, 3 Dec 2014 10:39:47 +0100 Subject: [PATCH 3/3] [CHG] account_voucher_killer: description & hide menu "Sales Receipts Analysis" --- account_voucher_killer/README.md | 4 +++- account_voucher_killer/__openerp__.py | 2 +- account_voucher_killer/invoice_view.xml | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/account_voucher_killer/README.md b/account_voucher_killer/README.md index 4a09ee2f9..e05d871dd 100644 --- a/account_voucher_killer/README.md +++ b/account_voucher_killer/README.md @@ -3,7 +3,9 @@ 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". +It also disables the voucher-related menus entries such as +"Sales Receipts", "Customer Payments", "Purchase Receipts", +"Supplier Payments" and "Journal Vouchers", "Sales Receipts Analysis". More precisely, this module adds a group "Use voucher in Invoices" 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 4c76ab82d..f1f2b826c 100644 --- a/account_voucher_killer/__openerp__.py +++ b/account_voucher_killer/__openerp__.py @@ -19,7 +19,7 @@ # ############################################################################## -{'name': 'Account voucher killer', +{'name': 'Accounting 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 7cec41bc8..a55224160 100644 --- a/account_voucher_killer/invoice_view.xml +++ b/account_voucher_killer/invoice_view.xml @@ -47,5 +47,9 @@ + + + +