Browse Source

Merge PR #202 into 12.0

Signed-off-by alexis-via
12.0
OCA-git-bot 3 years ago
parent
commit
1680135212
  1. 53
      account_bank_statement_import_save_file/README.rst
  2. 1
      account_bank_statement_import_save_file/__init__.py
  3. 19
      account_bank_statement_import_save_file/__manifest__.py
  4. 50
      account_bank_statement_import_save_file/i18n/account_bank_statement_import_save_file.pot
  5. 55
      account_bank_statement_import_save_file/i18n/de.po
  6. 55
      account_bank_statement_import_save_file/i18n/es.po
  7. 54
      account_bank_statement_import_save_file/i18n/fi.po
  8. 54
      account_bank_statement_import_save_file/i18n/fr.po
  9. 55
      account_bank_statement_import_save_file/i18n/fr_CH.po
  10. 54
      account_bank_statement_import_save_file/i18n/gl.po
  11. 55
      account_bank_statement_import_save_file/i18n/hr.po
  12. 54
      account_bank_statement_import_save_file/i18n/it.po
  13. 55
      account_bank_statement_import_save_file/i18n/lt.po
  14. 55
      account_bank_statement_import_save_file/i18n/lt_LT.po
  15. 55
      account_bank_statement_import_save_file/i18n/nb_NO.po
  16. 54
      account_bank_statement_import_save_file/i18n/nl.po
  17. 55
      account_bank_statement_import_save_file/i18n/pt_BR.po
  18. 55
      account_bank_statement_import_save_file/i18n/pt_PT.po
  19. 55
      account_bank_statement_import_save_file/i18n/sl.po
  20. 2
      account_bank_statement_import_save_file/models/__init__.py
  21. 17
      account_bank_statement_import_save_file/models/account_bank_statement.py
  22. 38
      account_bank_statement_import_save_file/models/account_bank_statement_import.py
  23. 3
      account_bank_statement_import_save_file/readme/CONTRIBUTORS.rst
  24. 1
      account_bank_statement_import_save_file/readme/DESCRIPTION.rst
  25. 1
      account_bank_statement_import_save_file/readme/USAGE.rst
  26. BIN
      account_bank_statement_import_save_file/static/description/icon.png
  27. 19
      account_bank_statement_import_save_file/views/account_bank_statement.xml

53
account_bank_statement_import_save_file/README.rst

@ -0,0 +1,53 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
============================
Save imported statement file
============================
This module saves the original file of an imported bank statement for further reference/processing and maintains a link between bank statements and those imported files.
Usage
=====
On a successful import, the generated statement(s) link to an attachment containing the original file.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/bank-statement-import/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.
Credits
=======
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Contributors
------------
* Holger Brunn <hbrunn@therp.nl>
* Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.

1
account_bank_statement_import_save_file/__init__.py

@ -0,0 +1 @@
from . import models

19
account_bank_statement_import_save_file/__manifest__.py

@ -0,0 +1,19 @@
# Copyright 2015-2019 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Save imported bank statements',
'version': '12.0.1.0.0',
'author': 'Odoo Community Association (OCA), Therp BV',
'license': 'AGPL-3',
'category': 'Banking addons',
'summary': 'Keep imported bank statements as raw data',
'depends': [
'account_bank_statement_import',
],
'data': [
'views/account_bank_statement.xml',
],
'installable': True,
'application': False,
}

50
account_bank_statement_import_save_file/i18n/account_bank_statement_import_save_file.pot

@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \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: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

55
account_bank_statement_import_save_file/i18n/de.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Udo Bremer <info@bremerd.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-12 00:39+0000\n"
"PO-Revision-Date: 2017-08-12 00:39+0000\n"
"Last-Translator: Udo Bremer <info@bremerd.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Kontoauszug"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Erstellungsdatum"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Beschreibung"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Kontoauszug importieren"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Datei importieren"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Importierte Datei"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Besitzer"

55
account_bank_statement_import_save_file/i18n/es.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-21 01:41+0000\n"
"PO-Revision-Date: 2018-02-21 01:41+0000\n"
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Extracto bancario"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Fecha de creación"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Descripción"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importar extracto bancario"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Importar archivo"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Archivo importado"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Propietario"

54
account_bank_statement_import_save_file/i18n/fi.po

@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Kuvaus"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Tuo pankkiaineisto"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

54
account_bank_statement_import_save_file/i18n/fr.po

@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Relevé bancaire"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Date de création"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Description"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importer Relevé Bancaire"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Fichier importé"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Fichier importé"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Propriétaire"

55
account_bank_statement_import_save_file/i18n/fr_CH.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (Switzerland) (https://www.transifex.com/oca/"
"teams/23907/fr_CH/)\n"
"Language: fr_CH\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importer Relevé"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

54
account_bank_statement_import_save_file/i18n/gl.po

@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n"
"Language: gl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importar extracto bancario"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

55
account_bank_statement_import_save_file/i18n/hr.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# Bole <bole@dajmi5.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-21 01:41+0000\n"
"PO-Revision-Date: 2018-02-21 01:41+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Bankovni izvod"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Datum kreiranja"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Opis"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Uvoz bankovnog izvoda"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Uvoz datoteke"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Uvežena datoteka"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Vlasnik"

54
account_bank_statement_import_save_file/i18n/it.po

@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Descrizione"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Proprietario"

55
account_bank_statement_import_save_file/i18n/lt.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n"
"Language: lt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
"%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Aprašymas"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

55
account_bank_statement_import_save_file/i18n/lt_LT.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: bank-statement-import (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-01 16:24+0000\n"
"PO-Revision-Date: 2015-09-01 16:25+0000\n"
"Last-Translator: <>\n"
"Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/oca/OCA-bank-"
"statement-import-8-0/language/lt_LT/)\n"
"Language: lt_LT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
"%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importuoti banko išrašą"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

55
account_bank_statement_import_save_file/i18n/nb_NO.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/"
"teams/23907/nb_NO/)\n"
"Language: nb_NO\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importer bankutsagn"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

54
account_bank_statement_import_save_file/i18n/nl.po

@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Bankafschrift"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr ""
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importeer bankafschrift"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Importeer bestand"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Geïmporteerd bestand"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr ""

55
account_bank_statement_import_save_file/i18n/pt_BR.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Extrato bancário"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Data de Criação"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Descrição"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importar Extrato Bancário"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Importar arquivo."
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Arquivo importado."
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Proprietário"

55
account_bank_statement_import_save_file/i18n/pt_PT.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/"
"teams/23907/pt_PT/)\n"
"Language: pt_PT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Extrato Bancário"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Data de Criação"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Descrição"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importar Extrato Bancário"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Importar ficheiro"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Ficheiro importado"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Dono"

55
account_bank_statement_import_save_file/i18n/sl.po

@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_save_file
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-11 21:55+0000\n"
"PO-Revision-Date: 2017-04-11 21:55+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement
msgid "Bank Statement"
msgstr "Bančni izpisek"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_date
msgid "Date Created"
msgstr "Datum nastanka"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log
msgid "Description"
msgstr "Opis"
#. module: account_bank_statement_import_save_file
#: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Uvoz bančnega izpiska"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_file
msgid "Import file"
msgstr "Uvoz datoteke"
#. module: account_bank_statement_import_save_file
#: model:ir.ui.view,arch_db:account_bank_statement_import_save_file.view_bank_statement_form
msgid "Imported file"
msgstr "Uvožena datoteka"
#. module: account_bank_statement_import_save_file
#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user
msgid "Owner"
msgstr "Lastnik"

2
account_bank_statement_import_save_file/models/__init__.py

@ -0,0 +1,2 @@
from . import account_bank_statement
from . import account_bank_statement_import

17
account_bank_statement_import_save_file/models/account_bank_statement.py

@ -0,0 +1,17 @@
# Copyright 2015-2019 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountBankStatement(models.Model):
_inherit = 'account.bank.statement'
import_file = fields.Many2one(
'ir.attachment', 'Import file', readonly=True)
import_date = fields.Datetime(
related='import_file.create_date', string='Imported on')
import_user = fields.Many2one(
related='import_file.create_uid', string='Imported by')
import_log = fields.Text(
related='import_file.description', string='Import Warnings')

38
account_bank_statement_import_save_file/models/account_bank_statement_import.py

@ -0,0 +1,38 @@
# Copyright 2015-2019 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class AccountBankStatementImport(models.TransientModel):
_inherit = 'account.bank.statement.import'
@api.multi
def import_file(self):
action = \
super(AccountBankStatementImport, self).import_file()
statement_ids = action.get('context', {}).get('statement_ids')
notifications = action.get('context', {}).get('notifications')
if statement_ids:
attach_vals = self._prepare_import_file_attachment(
self.data_file, statement_ids[0], notifications, self.filename)
attach = self.env['ir.attachment'].create(attach_vals)
self.env['account.bank.statement'].browse(statement_ids).write({
'import_file': attach.id})
return action
@api.model
def _prepare_import_file_attachment(self, data_file, statement_id,
notifications, filename):
if not filename:
filename = '<unknown>'
return {
'name': filename,
'res_model': 'account.bank.statement',
'res_id': statement_id,
'datas': data_file,
'datas_fname': filename,
'description': '\n'.join(
'%(type)s: %(message)s' % notification
for notification in notifications) or False,
}

3
account_bank_statement_import_save_file/readme/CONTRIBUTORS.rst

@ -0,0 +1,3 @@
* Holger Brunn <hbrunn@therp.nl>
* Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
* Alexis de Lattre <alexis.delattre@akretion.com>

1
account_bank_statement_import_save_file/readme/DESCRIPTION.rst

@ -0,0 +1 @@
This module saves the original file of an imported bank statement for further reference/processing and maintains a link between bank statements and those imported files.

1
account_bank_statement_import_save_file/readme/USAGE.rst

@ -0,0 +1 @@
On a successful import, the form view of the bank statement will have an additional tab *Imported File* which contains the original file.

BIN
account_bank_statement_import_save_file/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 7.1 KiB

19
account_bank_statement_import_save_file/views/account_bank_statement.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_bank_statement_form" model="ir.ui.view">
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page string="Imported File" name="imported_file" attrs="{'invisible': [('import_file', '=', False)]}">
<group>
<field name="import_file"/>
<field name="import_date"/>
<field name="import_user"/>
<field name="import_log"/>
</group>
</page>
</notebook>
</field>
</record>
</odoo>
Loading…
Cancel
Save