From 8981d2f34c76a72b3ef0fc20fbebb6e4ed27d3a8 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 15 Feb 2016 23:10:18 +0100 Subject: [PATCH] [IMP] account_banking_mandate: Cleanup * Short headers * Bump version numbers * es translations --- account_banking_mandate/__init__.py | 25 +++---------- account_banking_mandate/__openerp__.py | 30 ++++------------ account_banking_mandate/i18n/es.po | 34 +++++++++--------- account_banking_mandate/models/__init__.py | 27 +++----------- .../models/account_banking_mandate.py | 35 +++++-------------- .../models/account_invoice.py | 27 +++----------- .../models/bank_payment_line.py | 26 +++----------- .../models/payment_line.py | 27 +++----------- .../models/res_partner_bank.py | 26 +++----------- 9 files changed, 62 insertions(+), 195 deletions(-) diff --git a/account_banking_mandate/__init__.py b/account_banking_mandate/__init__.py index 2af74b3d2..e5d6460e0 100644 --- a/account_banking_mandate/__init__.py +++ b/account_banking_mandate/__init__.py @@ -1,22 +1,5 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for openERP -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from . import models diff --git a/account_banking_mandate/__openerp__.py b/account_banking_mandate/__openerp__.py index abee60c18..36d7de2dc 100644 --- a/account_banking_mandate/__openerp__.py +++ b/account_banking_mandate/__openerp__.py @@ -1,29 +1,13 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for openERP -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester , -# Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2015 Akretion - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + { 'name': 'Account Banking Mandate', 'summary': 'Banking mandates', - 'version': '8.0.0.1.0', + 'version': '8.0.0.2.0', 'license': 'AGPL-3', 'author': "Compassion CH, " "Serv. Tecnol. Avanzados - Pedro M. Baeza, " diff --git a/account_banking_mandate/i18n/es.po b/account_banking_mandate/i18n/es.po index dfc71c663..6db65dec8 100644 --- a/account_banking_mandate/i18n/es.po +++ b/account_banking_mandate/i18n/es.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-02-13 19:13+0000\n" -"PO-Revision-Date: 2016-02-13 19:13+0000\n" +"POT-Creation-Date: 2016-02-16 07:21+0000\n" +"PO-Revision-Date: 2016-02-16 07:21+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -65,7 +65,12 @@ msgstr "Cuenta bancaria" #. module: account_banking_mandate #: model:ir.model,name:account_banking_mandate.model_res_partner_bank msgid "Bank Accounts" -msgstr "Cuentas bancarias" +msgstr "Cuentas de banco" + +#. module: account_banking_mandate +#: model:ir.model,name:account_banking_mandate.model_bank_payment_line +msgid "Bank Payment Lines" +msgstr "Líneas de pago bancario" #. module: account_banking_mandate #: view:website:account_banking_mandate.account_banking_mandate_document @@ -119,13 +124,13 @@ msgid "Cancelled" msgstr "Cancelado" #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:110 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:93 #, python-format msgid "Cannot validate the mandate '%s' because it is not attached to a bank account." msgstr "No se puede validar el mandato '%s' porque no tiene ninguna cuenta bancaria asociada." #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:106 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:89 #, python-format msgid "Cannot validate the mandate '%s' without a date of signature." msgstr "No se puede validar el mandato '%s' sin una fecha de firma." @@ -145,11 +150,6 @@ msgstr "Creado por" msgid "Created on" msgstr "Creado en" -#. module: account_banking_mandate -#: view:payment.order:account_banking_mandate.view_mandate_payment_order_form -msgid "DD Mandate" -msgstr "Mandato bancario" - #. module: account_banking_mandate #: view:res.partner:account_banking_mandate.mandate_partner_form #: view:res.partner.bank:account_banking_mandate.mandate_partner_bank_tree @@ -299,7 +299,9 @@ msgid "Location and sign: _______________________, at ______ from ____________ f msgstr "Lugar y fecha de la firma: _______________________, a ______ de ____________ de" #. module: account_banking_mandate +#: view:bank.payment.line:account_banking_mandate.bank_payment_line_tree #: model:ir.actions.report.xml,name:account_banking_mandate.report_account_banking_mandate +#: view:payment.order:account_banking_mandate.view_mandate_payment_order_form msgid "Mandate" msgstr "Mandato SEPA" @@ -319,19 +321,19 @@ msgid "Mandate Validated" msgstr "Mandato validado" #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:152 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:135 #, python-format msgid "Mandate should be in cancel state" msgstr "El mandato debe estar en estado cancelado" #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:140 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:123 #, python-format msgid "Mandate should be in draft or valid state" msgstr "El mandato debe estar en estado borrador o validado" #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:131 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:114 #, python-format msgid "Mandate should be in draft state" msgstr "El mandato debe estar en estado borrador" @@ -459,19 +461,19 @@ msgid "Summary" msgstr "Resumen" #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:92 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:75 #, python-format msgid "The date of signature of mandate '%s' is in the future !" msgstr "La fecha de firma del mandato '%s' no puede ser superior a la actual" #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/account_banking_mandate.py:97 +#: code:addons/account_banking_mandate/models/account_banking_mandate.py:80 #, python-format msgid "The mandate '%s' can't have a date of last debit before the date of signature." msgstr "El mandato '%s' no puede tener una fecha de último cobro antes de la fecha de firma." #. module: account_banking_mandate -#: code:addons/account_banking_mandate/models/payment_line.py:68 +#: code:addons/account_banking_mandate/models/payment_line.py:51 #, python-format msgid "The payment line with reference '%s' has the bank account '%s' which is not attached to the mandate '%s' (this mandate is attached to the bank account '%s')." msgstr "La línea de pago con referencia '%s' tiene la cuenta bancaria '%s', que no está puesta en el mandato '%s' (este mandato tiene como cuenta bancaria '%s')." diff --git a/account_banking_mandate/models/__init__.py b/account_banking_mandate/models/__init__.py index 4b191f0d1..cb0da2fd5 100644 --- a/account_banking_mandate/models/__init__.py +++ b/account_banking_mandate/models/__init__.py @@ -1,25 +1,8 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for openERP -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester , -# Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2015 Akretion - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from . import account_banking_mandate from . import account_invoice from . import res_partner_bank diff --git a/account_banking_mandate/models/account_banking_mandate.py b/account_banking_mandate/models/account_banking_mandate.py index 1e6564a6b..233ea3b35 100644 --- a/account_banking_mandate/models/account_banking_mandate.py +++ b/account_banking_mandate/models/account_banking_mandate.py @@ -1,34 +1,17 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for openERP -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester , -# Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2015 Akretion - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, exceptions, api, _ class AccountBankingMandate(models.Model): - ''' The banking mandate is attached to a bank account and represents an - authorization that the bank account owner gives to a company for a - specific operation (such as direct debit) - ''' + """The banking mandate is attached to a bank account and represents an + authorization that the bank account owner gives to a company for a + specific operation (such as direct debit) + """ _name = 'account.banking.mandate' _description = "A generic banking mandate" _rec_name = 'unique_mandate_reference' diff --git a/account_banking_mandate/models/account_invoice.py b/account_banking_mandate/models/account_invoice.py index e040c426f..f5eb7f287 100644 --- a/account_banking_mandate/models/account_invoice.py +++ b/account_banking_mandate/models/account_invoice.py @@ -1,25 +1,8 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for openERP -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester , -# Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from openerp import models, fields diff --git a/account_banking_mandate/models/bank_payment_line.py b/account_banking_mandate/models/bank_payment_line.py index cb268198c..4952c17a0 100644 --- a/account_banking_mandate/models/bank_payment_line.py +++ b/account_banking_mandate/models/bank_payment_line.py @@ -1,24 +1,8 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for Odoo -# Copyright (C) 2015 Akretion (http://www.akretion.com) -# @author: Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2015 Akretion - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api diff --git a/account_banking_mandate/models/payment_line.py b/account_banking_mandate/models/payment_line.py index fa044ea29..96bd73f41 100644 --- a/account_banking_mandate/models/payment_line.py +++ b/account_banking_mandate/models/payment_line.py @@ -1,25 +1,8 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for Odoo -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester , -# Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2015 Akretion - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api, exceptions, _ diff --git a/account_banking_mandate/models/res_partner_bank.py b/account_banking_mandate/models/res_partner_bank.py index d3d40e481..119d3b4ff 100644 --- a/account_banking_mandate/models/res_partner_bank.py +++ b/account_banking_mandate/models/res_partner_bank.py @@ -1,25 +1,7 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Mandate module for openERP -# Copyright (C) 2014 Compassion CH (http://www.compassion.ch) -# @author: Cyril Sester , -# Alexis de Lattre -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Compassion CH - Cyril Sester +# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields