From 3d69fbdf1ec30f38742436086d3fca35a36b8e1b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 14 Feb 2013 12:31:45 +0100 Subject: [PATCH 1/2] [ADD] voucher killer addons. --- invoicing_voucher_killer/__init__.py | 20 ++++ invoicing_voucher_killer/__openerp__.py | 39 +++++++ invoicing_voucher_killer/invoice_data.xml | 7 ++ invoicing_voucher_killer/invoice_view.xml | 48 ++++++++ statement_voucher_killer/__init__.py | 21 ++++ statement_voucher_killer/__openerp__.py | 40 +++++++ statement_voucher_killer/voucher.py | 128 ++++++++++++++++++++++ 7 files changed, 303 insertions(+) create mode 100644 invoicing_voucher_killer/__init__.py create mode 100644 invoicing_voucher_killer/__openerp__.py create mode 100644 invoicing_voucher_killer/invoice_data.xml create mode 100644 invoicing_voucher_killer/invoice_view.xml create mode 100644 statement_voucher_killer/__init__.py create mode 100644 statement_voucher_killer/__openerp__.py create mode 100644 statement_voucher_killer/voucher.py diff --git a/invoicing_voucher_killer/__init__.py b/invoicing_voucher_killer/__init__.py new file mode 100644 index 00000000..0463f7df --- /dev/null +++ b/invoicing_voucher_killer/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (c) 2013 Camptocamp SA (http://www.camptocamp.com) +# @author Nicolas Bessi +# +# 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/invoicing_voucher_killer/__openerp__.py b/invoicing_voucher_killer/__openerp__.py new file mode 100644 index 00000000..1f5779df --- /dev/null +++ b/invoicing_voucher_killer/__openerp__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (c) 2013 Camptocamp SA (http://www.camptocamp.com) +# @author Nicolas Bessi +# +# 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': 'Invoicing voucher killer', + 'version': '1.0.0', + 'category': 'other', + 'description': """ +Prevent the usage of voucher from invoices +########################################## +This add-on will disable "Register Payment" button +""", + 'author': 'Camptocamp', + 'website': 'http://www.camptocamp.com', + 'depends': ['account_voucher'], + 'data': ['invoice_data.xml', + 'invoice_view.xml'], + 'demo_xml': [], + 'test': [], + 'installable': True, + 'active': False, + } diff --git a/invoicing_voucher_killer/invoice_data.xml b/invoicing_voucher_killer/invoice_data.xml new file mode 100644 index 00000000..01870109 --- /dev/null +++ b/invoicing_voucher_killer/invoice_data.xml @@ -0,0 +1,7 @@ + + + + Use voucher in Invoices + + + diff --git a/invoicing_voucher_killer/invoice_view.xml b/invoicing_voucher_killer/invoice_view.xml new file mode 100644 index 00000000..9d792cc1 --- /dev/null +++ b/invoicing_voucher_killer/invoice_view.xml @@ -0,0 +1,48 @@ + + + + Hide voucher in invoice + account.invoice + + form + + +