From 715fbe9c70855eea92720f79c3a28293d6a7d423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 21 Nov 2014 14:22:01 +0100 Subject: [PATCH 1/8] [MIG] move invoicing_voucher_killer from OCA/bank-statement-reconcile/__upported__ --- invoicing_voucher_killer/__init__.py | 20 ++++++++ invoicing_voucher_killer/__openerp__.py | 39 ++++++++++++++++ invoicing_voucher_killer/i18n/es.po | 33 +++++++++++++ .../i18n/invoicing_voucher_killer.pot | 32 +++++++++++++ invoicing_voucher_killer/invoice_data.xml | 7 +++ invoicing_voucher_killer/invoice_view.xml | 46 +++++++++++++++++++ 6 files changed, 177 insertions(+) create mode 100644 invoicing_voucher_killer/__init__.py create mode 100644 invoicing_voucher_killer/__openerp__.py create mode 100644 invoicing_voucher_killer/i18n/es.po create mode 100644 invoicing_voucher_killer/i18n/invoicing_voucher_killer.pot create mode 100644 invoicing_voucher_killer/invoice_data.xml create mode 100644 invoicing_voucher_killer/invoice_view.xml diff --git a/invoicing_voucher_killer/__init__.py b/invoicing_voucher_killer/__init__.py new file mode 100644 index 000000000..0463f7df0 --- /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 000000000..bf84510ce --- /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': False, + 'active': False, + } diff --git a/invoicing_voucher_killer/i18n/es.po b/invoicing_voucher_killer/i18n/es.po new file mode 100644 index 000000000..79fac92e9 --- /dev/null +++ b/invoicing_voucher_killer/i18n/es.po @@ -0,0 +1,33 @@ +# Spanish translation for banking-addons +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the banking-addons package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: banking-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2014-01-21 12:00+0000\n" +"PO-Revision-Date: 2014-06-05 22:47+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-06-06 06:36+0000\n" +"X-Generator: Launchpad (build 17031)\n" + +#. module: invoicing_voucher_killer +#: view:account.invoice:0 +msgid "Pay" +msgstr "Pagar" + +#. module: invoicing_voucher_killer +#: model:res.groups,name:invoicing_voucher_killer.invoice_voucher_user +msgid "Use voucher in Invoices" +msgstr "Usar resguardos en facturas" + +#. module: invoicing_voucher_killer +#: view:account.invoice:0 +msgid "Register Payment" +msgstr "Registrar pago" diff --git a/invoicing_voucher_killer/i18n/invoicing_voucher_killer.pot b/invoicing_voucher_killer/i18n/invoicing_voucher_killer.pot new file mode 100644 index 000000000..dec048dc0 --- /dev/null +++ b/invoicing_voucher_killer/i18n/invoicing_voucher_killer.pot @@ -0,0 +1,32 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * invoicing_voucher_killer +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-01-21 12:00+0000\n" +"PO-Revision-Date: 2014-01-21 12:00+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: invoicing_voucher_killer +#: view:account.invoice:0 +msgid "Pay" +msgstr "" + +#. module: invoicing_voucher_killer +#: model:res.groups,name:invoicing_voucher_killer.invoice_voucher_user +msgid "Use voucher in Invoices" +msgstr "" + +#. module: invoicing_voucher_killer +#: view:account.invoice:0 +msgid "Register Payment" +msgstr "" + diff --git a/invoicing_voucher_killer/invoice_data.xml b/invoicing_voucher_killer/invoice_data.xml new file mode 100644 index 000000000..018701094 --- /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 000000000..3ca3663ea --- /dev/null +++ b/invoicing_voucher_killer/invoice_view.xml @@ -0,0 +1,46 @@ + + + + Hide voucher in invoice + account.invoice + + + +