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 + + +