Skip to content

Commit

Permalink
account_payment_return: Improvements to suite (OCA#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdauden authored and victoralmau committed Nov 11, 2021
1 parent 3c7fee2 commit d842f0a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 27 deletions.
67 changes: 42 additions & 25 deletions account_payment_return_import/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,45 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_return_import
#
#
# Translators:
# Sergio Teruel Albert, 2015
msgid ""
msgstr ""
"Project-Id-Version: account-payment (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-15 18:00+0000\n"
"PO-Revision-Date: 2016-09-16 21:45+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-payment-8-0/language/es/)\n"
"POT-Creation-Date: 2016-10-25 13:32+0200\n"
"PO-Revision-Date: 2016-10-25 13:36+0200\n"
"Last-Translator: Carlos Incaser <carlos@incaser.es>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-payment-8-0/"
"language/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.8.7.1\n"

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:265
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:268
#, python-format
msgid "%d transactions had already been imported and were ignored."
msgstr "%d transacciones ya han sido importadas y serán ignoradas."

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:268
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:271
#, python-format
msgid "1 transaction had already been imported and was ignored."
msgstr "1 transacción ya ha sido importada y será ignorada."

#. module: account_payment_return_import
#: view:payment.return.import:account_payment_return_import.account_payment_return_import_view
msgid "1. Download your Payment Return file from your bank website."
msgstr "1. Descarga tu fichero de devoluciones de cobro desde la web de tu banco."
msgstr ""
"1. Descarga tu fichero de devoluciones de cobro desde la web de tu banco."

#. module: account_payment_return_import
#: view:payment.return.import:account_payment_return_import.account_payment_return_import_view
msgid ""
"2. Make sure you have installed the right module to support the file format."
msgstr "2. Asegúrate de que tienes instalado el modulo correcto que soporta el formato del archivo."
msgstr ""
"2. Asegúrate de que tienes instalado el modulo correcto que soporta el "
"formato del archivo."

#. module: account_payment_return_import
#: view:payment.return.import:account_payment_return_import.account_payment_return_import_view
Expand All @@ -57,22 +62,25 @@ msgid ""
"Accounting journal related to the bank payment return you're importing. It "
"has be be manually chosen for payment return formats which doesn't allow "
"automatic journal detection."
msgstr "Diario contable relacionado con el archivo de devoluciones que estas importando. Se selecciona manualmente para formatos de archivos que no permiten la detección automática del diario."
msgstr ""
"Diario contable relacionado con el archivo de devoluciones que estas "
"importando. Se selecciona manualmente para formatos de archivos que no "
"permiten la detección automática del diario."

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:271
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:274
#, python-format
msgid "Already imported items"
msgstr "Elementos ya importados"

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:203
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:206
#, python-format
msgid "Can not determine journal for import."
msgstr "No puede determinarse el diario para importar."

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:199
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:202
#, python-format
msgid "Can not find the account number %s."
msgstr "No se puede encontrar el número de cuenta %s."
Expand All @@ -83,12 +91,14 @@ msgid "Cancel"
msgstr "Cancelar"

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:141
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:144
#, python-format
msgid ""
"Could not make sense of the given file.\n"
"Did you install the module to support this type of file?"
msgstr "No se pudo hacer con sentido de el archivo dado.\n¿Instalaste el modulo para soportar este tipo de archivo?"
msgstr ""
"No se pudo dar sentido al archivo dado.\n"
"¿Instaló el modulo para soportar este tipo de archivo?"

#. module: account_payment_return_import
#: field:payment.return.import,create_uid:0
Expand All @@ -110,12 +120,14 @@ msgstr "Nombre mostrado"
msgid ""
"Get you bank payment returns in electronic format from your bank and select "
"them here."
msgstr "Obtén tus devoluciones de cobros en formato electrónico desde tu banco y selecciónalas aquí."
msgstr ""
"Obtén tus devoluciones de cobros en formato electrónico desde tu banco y "
"selecciónalas aquí."

#. module: account_payment_return_import
#: field:payment.return.import,hide_journal_field:0
msgid "Hide the journal field in the view"
msgstr ""
msgstr "Oculta el campo diario en la vista"

#. module: account_payment_return_import
#: view:payment.return.import:account_payment_return_import.account_payment_return_import_view
Expand Down Expand Up @@ -164,6 +176,11 @@ msgstr "Última actualización de"
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: account_payment_return_import
#: field:payment.return.import,match_after_import:0
msgid "Match after import"
msgstr "Casar referencias después de importar"

#. module: account_payment_return_import
#: field:payment.return.import,data_file:0
msgid "Payment Return File"
Expand All @@ -180,19 +197,19 @@ msgid "Raw import data"
msgstr ""

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:182
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:185
#, python-format
msgid "The account of this payment return is linked to another journal."
msgstr "La cuenta de esta devolución esta relacionada con otro diario."

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:150
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:153
#, python-format
msgid "This file doesn't contain any payment return."
msgstr "Este archivo no contiene ninguna devolución."

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:156
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:159
#, python-format
msgid "This file doesn't contain any transaction."
msgstr "Este archivo no contiene ninguna transacción."
Expand All @@ -203,15 +220,15 @@ msgid "XML RAW data stored for debugging/check purposes"
msgstr ""

#. module: account_payment_return_import
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:115
#: code:addons/account_payment_return_import/wizard/payment_return_import.py:118
#, python-format
msgid "You have already imported this file."
msgstr "Ya has importado este archivo. "

#. module: account_payment_return_import
#: view:payment.return.import:account_payment_return_import.account_payment_return_import_view
msgid "_Import"
msgstr "Importado"
msgid "Import"
msgstr "Importar"

#. module: account_payment_return_import
#: view:payment.return.import:account_payment_return_import.account_payment_return_import_view
Expand Down
3 changes: 3 additions & 0 deletions account_payment_return_import/wizard/payment_return_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def _get_hide_journal_field(self):
'Payment Return File', required=True,
help='Get you bank payment returns in electronic format from your '
'bank and select them here.')
match_after_import = fields.Boolean(default=True)

@api.multi
def import_file(self):
Expand All @@ -48,6 +49,8 @@ def import_file(self):
)._import_file(data_file)
result = self.env.ref(
'account_payment_return.payment_return_action').read()[0]
if self.match_after_import:
payment_returns.button_match()
if len(payment_returns) != 1:
result['domain'] = "[('id', 'in', %s)]" % payment_returns.ids
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
<field name="priority">1</field>
<field name="arch" type="xml">
<form string="Import Payment Returns">
<field name="data_file"/>
<group name="file">
<field name="data_file"/>
<field name="match_after_import"/>
</group>
<field name="hide_journal_field" invisible="1"/>
<label for="journal_id"/>
<field name="journal_id"
Expand All @@ -21,7 +24,7 @@
<br/><label string= "2. Make sure you have installed the right module to support the file format."/>
<br/><label string= "3. Select the file and click 'Import'."/>
<footer>
<button name="import_file" string="_Import" type="object" class="oe_highlight"/>
<button name="import_file" string="Import" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
Expand Down

0 comments on commit d842f0a

Please sign in to comment.