From 64a21a9f10a6b6fb1ec02ff8f49524f7df2e14d0 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 28 May 2015 16:43:23 +0200 Subject: [PATCH 01/34] migration script and a module that takes care of saving imported files (+migration) --- .../README.rst | 30 ++++++ .../__init__.py | 22 +++++ .../__openerp__.py | 45 +++++++++ .../hooks.py | 92 ++++++++++++++++++ .../models/__init__.py | 22 +++++ .../models/account_bank_statement.py | 34 +++++++ .../models/account_bank_statement_import.py | 60 ++++++++++++ .../static/description/icon.png | Bin 0 -> 6907 bytes .../views/account_bank_statement.xml | 25 +++++ 9 files changed, 330 insertions(+) create mode 100644 account_bank_statement_import_save_file/README.rst create mode 100644 account_bank_statement_import_save_file/__init__.py create mode 100644 account_bank_statement_import_save_file/__openerp__.py create mode 100644 account_bank_statement_import_save_file/hooks.py create mode 100644 account_bank_statement_import_save_file/models/__init__.py create mode 100644 account_bank_statement_import_save_file/models/account_bank_statement.py create mode 100644 account_bank_statement_import_save_file/models/account_bank_statement_import.py create mode 100644 account_bank_statement_import_save_file/static/description/icon.png create mode 100644 account_bank_statement_import_save_file/views/account_bank_statement.xml diff --git a/account_bank_statement_import_save_file/README.rst b/account_bank_statement_import_save_file/README.rst new file mode 100644 index 0000000..694c956 --- /dev/null +++ b/account_bank_statement_import_save_file/README.rst @@ -0,0 +1,30 @@ +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. + +Credits +======= + +Contributors +------------ + +* Holger Brunn + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://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 http://odoo-community.org. diff --git a/account_bank_statement_import_save_file/__init__.py b/account_bank_statement_import_save_file/__init__.py new file mode 100644 index 0000000..a1813e6 --- /dev/null +++ b/account_bank_statement_import_save_file/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV . +# +# 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 . +# +############################################################################## +from . import models +from .hooks import _post_init_hook diff --git a/account_bank_statement_import_save_file/__openerp__.py b/account_bank_statement_import_save_file/__openerp__.py new file mode 100644 index 0000000..57b4097 --- /dev/null +++ b/account_bank_statement_import_save_file/__openerp__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV . +# +# 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": "Save imported bank statements", + "version": "1.0", + "author": "Therp BV", + "license": "AGPL-3", + "category": "Accounting & Finance", + "summary": "Keep imported bank statements as raw data", + "depends": [ + 'account_bank_statement_import', + ], + "data": [ + "views/account_bank_statement.xml", + ], + "qweb": [ + ], + "test": [ + ], + "post_init_hook": '_post_init_hook', + "auto_install": False, + "installable": True, + "application": False, + "external_dependencies": { + 'python': [], + }, +} diff --git a/account_bank_statement_import_save_file/hooks.py b/account_bank_statement_import_save_file/hooks.py new file mode 100644 index 0000000..f35b069 --- /dev/null +++ b/account_bank_statement_import_save_file/hooks.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV . +# +# 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 . +# +############################################################################## +from openerp import SUPERUSER_ID, api + + +def _post_init_hook(cr, pool): + # if we install this module on a database with remains of account_banking, + # migrate account.banking.imported.file + cr.execute( + "select 1 from pg_catalog.pg_class c " + "join pg_catalog.pg_namespace n ON n.oid = c.relnamespace " + "where n.nspname = 'public' and " + "c.relname = 'account_banking_imported_file' and " + "c.relkind = 'r'") + if cr.fetchall(): + _post_init_hook_migrate_account_banking_imported_file(cr, pool) + + +def _post_init_hook_migrate_account_banking_imported_file(cr, pool): + # create attachments + cr.execute( + """insert into ir_attachment + ( + name, create_uid, create_date, datas_fname, description, + company_id, res_model, type, + res_id + ) + select + coalesce(file_name, ''), user_id, date, file_name, log, + company_id, 'account.bank.statement', 'binary', + ( + select id from account_bank_statement + where banking_id=f.id + limit 1 + ) + from account_banking_imported_file f + returning id""") + + attachment_ids = [attachment_id for attachment_id, in cr.fetchall()] + + # assign respective attachment to all statements pointing to an imported + # banking file + cr.execute( + """with banking_id2attachment as ( + select distinct b.id banking_id, a.id attachment_id + from account_banking_imported_file b + join account_bank_statement s + on s.banking_id=b.id + join ir_attachment a + on a.id in %s and s.id=a.res_id + ) + update account_bank_statement s + set import_file=b2a.attachment_id + from banking_id2attachment b2a + where b2a.banking_id=s.banking_id""", + (tuple(attachment_ids),) + ) + + # now we just have to write the file's content via the orm + # (to support non-db storage) + cr.execute( + """select distinct a.id, b.file + from account_banking_imported_file b + join account_bank_statement s + on s.banking_id=b.id + join ir_attachment a + on a.id in %s and s.id=a.res_id""", + (tuple(attachment_ids),) + ) + for attachment_id, content in cr.fetchall(): + pool['ir.attachment'].write( + cr, SUPERUSER_ID, + [attachment_id], + {'datas': str(content)}) diff --git a/account_bank_statement_import_save_file/models/__init__.py b/account_bank_statement_import_save_file/models/__init__.py new file mode 100644 index 0000000..84bff13 --- /dev/null +++ b/account_bank_statement_import_save_file/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV . +# +# 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 . +# +############################################################################## +from . import account_bank_statement +from . import account_bank_statement_import diff --git a/account_bank_statement_import_save_file/models/account_bank_statement.py b/account_bank_statement_import_save_file/models/account_bank_statement.py new file mode 100644 index 0000000..fe67d3c --- /dev/null +++ b/account_bank_statement_import_save_file/models/account_bank_statement.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV (). +# +# 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 . +# +############################################################################## +from openerp import models, fields, api + + +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'], readonly=True) + import_user = fields.Many2one( + related=['import_file', 'create_uid'], readonly=True) + import_log = fields.Text( + related=['import_file', 'description'], readonly=True) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py new file mode 100644 index 0000000..15b8d86 --- /dev/null +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV (). +# +# 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 . +# +############################################################################## +import base64 +import inspect +from openerp import models, fields, api + + +class AccountBankStatementImport(models.Model): + _inherit = 'account.bank.statement.import' + + @api.model + def _import_statement(self, statement): + (statement_id, notifications) = \ + super(AccountBankStatementImport, self)._import_statement( + statement) + if statement_id: + # get raw file data from the stack + def get_data_file(frame): + if 'data_file' in frame.f_locals: + return frame.f_locals['data_file'] + if frame.f_back: + return get_data_file(frame.f_back) + return None + data_file = get_data_file(inspect.currentframe()) + self.env['account.bank.statement'].browse([statement_id]).write({ + 'import_file': self.env['ir.attachment'].create( + self._create_import_file_attachment_data( + data_file, statement_id, notifications)).id, + }) + return (statement_id, notifications) + + @api.model + def _create_import_file_attachment_data(self, data_file, statement_id, + notifications): + return { + 'name': '', + 'res_model': 'account.bank.statement', + 'res_id': statement_id, + 'type': 'binary', + 'datas': base64.b64encode(data_file), + 'description': notifications, + } diff --git a/account_bank_statement_import_save_file/static/description/icon.png b/account_bank_statement_import_save_file/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1a22a285caee435c1257b688f5b45cc3c6682a33 GIT binary patch literal 6907 zcmaiZ^SO5P=;Lea0v~svG%bY-RdqSQx+QY@W@uf_?WXNKX!mN(KRW$ap9; z_^0pK(^ADz#Q_)B*ZT^krQ!zS!=-O?NlMc|5^qC$3yC-Lwc9>(--A%3GQ5q9Li#ibk8kt5Y31TwXXE#No_f7xjYzK-dGto!9C8eXrxWf3mWEW#b?vq(%-%O8GA)> z-(yF^o>zy=6q*6_0rrHk+b~ZxZ?|wR_}Pe+ajereAcOaB7`zM)7kehnvFvBjNs`ET! z!pRIF*QpQ4>VQAmjtfGMiEA;T`Jv#lw%+gC(t_tNl*@oMKtHA$N>cy?q)OF?=KKqz zc_dJ0i>3#=Q(kheQ)R%n|LNzjVv$ys214$X4mT~R!mm!y+rDTHKYF#lrUFwM%bWAFCkTR-%gUDghzYWoo z(z}F@poRT*<$PL`Gi4i;+zBtgMF?=p1L+c;N|vz_@|Rq*@xu{iF)ek?G8H1sJ|X9x2I#~ z`Z?ioJGl%ynqKv&)1R@}s<7NZP|Wo~t89X#%R1dUbc={{RU98K_DnswXeW#!H~1_N ziS!g!>Lo+8Tl+3uWZPO>yGaSJ9hl^TMgPVcuTvX6p-+h1=5SqL)lkIS)c8@SRjwIm z2SmBtBf5Z{v#chkt7DEqq~_-y?w^>Yfo%d4n`Id7 zNij73$iY&c){p=7Hzm*AuQn+a)F;T|P}Z^um6!yp1kDZPq=*$d{0K5N&o;USSi&uf z#j(yr9$o1g{fG!fcB`E$Q`JCcTZgq(MGT&E5$Mj8cg+?=6ew}ziQrr6)#b46Sy()E zF|lizj>PsWrC62ua`2Z^-Q`exoii){H?kM`3D#kOIdJ5W%ECi8Dm3c)L|OIDkGkPE>uYhF#<%tH~dn43i*_S(FjeEcMo_7V8|$FJX)0TXj_h zc7A6<@GRm@Q=?n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cdRFD^YWiR1 ze69ha+b#^W@pfIuKJborgnsR~&?nRsl`JZf%hOY>Ux|qnoX)2DOS!9gng$TF&)QHO z=g<^X8)Jn@-ohU~9kLqnR(ydI-$#K33Cv@UM^Y3Q8}QR|>Vh|){=YdL;fEE9m-KL= X(w!Fx-Uru-DuB-2` + + + + account.bank.statement + + + + + + + + + + + + + + + + + + + + From 61b2ac97e630531f02f4f5d52d298280aa805fdf Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 29 May 2015 08:26:52 +0200 Subject: [PATCH 02/34] test --- .../tests/__init__.py | 21 +++++++ .../tests/test_save_file.py | 61 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 account_bank_statement_import_save_file/tests/__init__.py create mode 100644 account_bank_statement_import_save_file/tests/test_save_file.py diff --git a/account_bank_statement_import_save_file/tests/__init__.py b/account_bank_statement_import_save_file/tests/__init__.py new file mode 100644 index 0000000..f06dd21 --- /dev/null +++ b/account_bank_statement_import_save_file/tests/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV . +# +# 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 . +# +############################################################################## +from . import test_save_file diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py new file mode 100644 index 0000000..8c3f341 --- /dev/null +++ b/account_bank_statement_import_save_file/tests/test_save_file.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2015 Therp BV . +# +# 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 . +# +############################################################################## +import base64 +from openerp import models +from openerp.tests.common import TransactionCase + + +class HelloWorldParser(models.TransientModel): + _inherit = 'account.bank.statement.import' + + def _parse_file(self, cr, uid, data_file, context=None): + return 'EUR', 'BE1234567890', [{ + 'name': '000000123', + 'date': '2013-06-26', + 'transactions': [{ + 'name': 'KBC-INVESTERINGSKREDIET 787-5562831-01', + 'date': '2013-06-26', + 'amount': 42, + 'unique_import_id': 'hello', + }], + }] + + +class TestSaveFile(TransactionCase): + def test_SaveFile(self): + HelloWorldParser._build_model(self.registry, self.cr) + testmodel = self.env['account.bank.statement.import'] + testmodel._prepare_setup() + testmodel._setup_base(False) + testmodel._setup_fields() + testmodel._setup_complete() + testmodel._auto_init() + action = self.env['account.bank.statement.import']\ + .with_context( + journal_id=self.env['account.journal'] + .search([('currency.name', '=', 'EUR')]).ids[0])\ + .create({'data_file': base64.b64encode('hello world')})\ + .import_file() + for statement in self.env['account.bank.statement'].browse( + action['context']['statement_ids']): + self.assertEqual( + base64.b64decode(statement.import_file.datas), + 'hello world') From 90ad4a6d4620befce29dc3c799ac99acff762082 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 29 May 2015 08:46:07 +0200 Subject: [PATCH 03/34] make test work with and without demo data --- .../tests/test_save_file.py | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py index 8c3f341..dca847c 100644 --- a/account_bank_statement_import_save_file/tests/test_save_file.py +++ b/account_bank_statement_import_save_file/tests/test_save_file.py @@ -19,15 +19,21 @@ # ############################################################################## import base64 -from openerp import models +from openerp import api, models from openerp.tests.common import TransactionCase +acc_number = 'BE1234567890' + + class HelloWorldParser(models.TransientModel): _inherit = 'account.bank.statement.import' - def _parse_file(self, cr, uid, data_file, context=None): - return 'EUR', 'BE1234567890', [{ + @api.model + def _parse_file(self, data_file): + return [{ + 'currency_code': 'EUR', + 'account_number': acc_number, 'name': '000000123', 'date': '2013-06-26', 'transactions': [{ @@ -42,16 +48,21 @@ class HelloWorldParser(models.TransientModel): class TestSaveFile(TransactionCase): def test_SaveFile(self): HelloWorldParser._build_model(self.registry, self.cr) - testmodel = self.env['account.bank.statement.import'] - testmodel._prepare_setup() - testmodel._setup_base(False) - testmodel._setup_fields() - testmodel._setup_complete() - testmodel._auto_init() - action = self.env['account.bank.statement.import']\ - .with_context( - journal_id=self.env['account.journal'] - .search([('currency.name', '=', 'EUR')]).ids[0])\ + import_wizard = self.env['account.bank.statement.import'] + import_wizard._prepare_setup() + import_wizard._setup_base(False) + import_wizard._setup_fields() + import_wizard._setup_complete() + import_wizard._auto_init() + journal_id = self.env['res.partner.bank'].search([ + ('acc_number', '=', acc_number), + ]).journal_id.id + if not journal_id: + account = import_wizard._create_bank_account(acc_number) + journal_id = self.env['account.journal']\ + .search([('currency.name', '=', 'EUR')]).ids[0] + account.journal_id = journal_id + action = import_wizard.with_context(journal_id=journal_id)\ .create({'data_file': base64.b64encode('hello world')})\ .import_file() for statement in self.env['account.bank.statement'].browse( From 95e81341dbadd78b2127a5323e569864881a3346 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 4 Jun 2015 10:54:01 +0200 Subject: [PATCH 04/34] account.bank.statement.import is transient --- .../models/account_bank_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 15b8d86..f0646f9 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -23,7 +23,7 @@ import inspect from openerp import models, fields, api -class AccountBankStatementImport(models.Model): +class AccountBankStatementImport(models.TransientModel): _inherit = 'account.bank.statement.import' @api.model From 2a27287aec33d95de878e9f127a8b98af7383411 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 8 Jun 2015 12:37:48 +0200 Subject: [PATCH 05/34] unused imports --- account_bank_statement_import_save_file/hooks.py | 2 +- .../models/account_bank_statement.py | 2 +- .../models/account_bank_statement_import.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/account_bank_statement_import_save_file/hooks.py b/account_bank_statement_import_save_file/hooks.py index f35b069..908c225 100644 --- a/account_bank_statement_import_save_file/hooks.py +++ b/account_bank_statement_import_save_file/hooks.py @@ -18,7 +18,7 @@ # along with this program. If not, see . # ############################################################################## -from openerp import SUPERUSER_ID, api +from openerp import SUPERUSER_ID def _post_init_hook(cr, pool): diff --git a/account_bank_statement_import_save_file/models/account_bank_statement.py b/account_bank_statement_import_save_file/models/account_bank_statement.py index fe67d3c..9b7073b 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement.py @@ -18,7 +18,7 @@ # along with this program. If not, see . # ############################################################################## -from openerp import models, fields, api +from openerp import models, fields class AccountBankStatement(models.Model): diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index f0646f9..9ef8d1b 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -20,7 +20,7 @@ ############################################################################## import base64 import inspect -from openerp import models, fields, api +from openerp import models, api class AccountBankStatementImport(models.TransientModel): From c00fe10ce3011ba7a4b957c6c7f8019698233d05 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 25 Jun 2015 15:09:32 +0200 Subject: [PATCH 06/34] adapt to upstream changes --- .../models/account_bank_statement_import.py | 23 +++++---------- .../tests/test_save_file.py | 28 +++++++++++-------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 9ef8d1b..3e3ab9d 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -27,25 +27,16 @@ class AccountBankStatementImport(models.TransientModel): _inherit = 'account.bank.statement.import' @api.model - def _import_statement(self, statement): - (statement_id, notifications) = \ - super(AccountBankStatementImport, self)._import_statement( - statement) - if statement_id: - # get raw file data from the stack - def get_data_file(frame): - if 'data_file' in frame.f_locals: - return frame.f_locals['data_file'] - if frame.f_back: - return get_data_file(frame.f_back) - return None - data_file = get_data_file(inspect.currentframe()) - self.env['account.bank.statement'].browse([statement_id]).write({ + def _import_file(self, data_file): + (statement_ids, notifications) = \ + super(AccountBankStatementImport, self)._import_file(data_file) + if statement_ids: + self.env['account.bank.statement'].browse(statement_ids).write({ 'import_file': self.env['ir.attachment'].create( self._create_import_file_attachment_data( - data_file, statement_id, notifications)).id, + data_file, statement_ids[0], notifications)).id, }) - return (statement_id, notifications) + return (statement_ids, notifications) @api.model def _create_import_file_attachment_data(self, data_file, statement_id, diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py index dca847c..7e5b186 100644 --- a/account_bank_statement_import_save_file/tests/test_save_file.py +++ b/account_bank_statement_import_save_file/tests/test_save_file.py @@ -31,18 +31,20 @@ class HelloWorldParser(models.TransientModel): @api.model def _parse_file(self, data_file): - return [{ - 'currency_code': 'EUR', - 'account_number': acc_number, - 'name': '000000123', - 'date': '2013-06-26', - 'transactions': [{ - 'name': 'KBC-INVESTERINGSKREDIET 787-5562831-01', + return ( + 'EUR', + acc_number, + [{ + 'name': '000000123', 'date': '2013-06-26', - 'amount': 42, - 'unique_import_id': 'hello', + 'transactions': [{ + 'name': 'KBC-INVESTERINGSKREDIET 787-5562831-01', + 'date': '2013-06-26', + 'amount': 42, + 'unique_import_id': 'hello', + }], }], - }] + ) class TestSaveFile(TransactionCase): @@ -60,7 +62,11 @@ class TestSaveFile(TransactionCase): if not journal_id: account = import_wizard._create_bank_account(acc_number) journal_id = self.env['account.journal']\ - .search([('currency.name', '=', 'EUR')]).ids[0] + .search([ + '|', + ('currency.name', '=', 'EUR'), + ('currency', '=', False) + ]).ids[0] account.journal_id = journal_id action = import_wizard.with_context(journal_id=journal_id)\ .create({'data_file': base64.b64encode('hello world')})\ From 2e2b217526fa2db6bb2415fbf0a75507b6eac06f Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 25 Jun 2015 15:29:46 +0200 Subject: [PATCH 07/34] unused import --- .../models/account_bank_statement_import.py | 1 - 1 file changed, 1 deletion(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 3e3ab9d..875e2c7 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -19,7 +19,6 @@ # ############################################################################## import base64 -import inspect from openerp import models, api From 19905ff2bc716fcbcbc71baf5a3406ab76256b4d Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 30 Jul 2015 11:49:10 +0200 Subject: [PATCH 08/34] better icon --- .../README.rst | 5 +++++ .../static/description/icon.png | Bin 6907 -> 7226 bytes 2 files changed, 5 insertions(+) diff --git a/account_bank_statement_import_save_file/README.rst b/account_bank_statement_import_save_file/README.rst index 694c956..37ff0bf 100644 --- a/account_bank_statement_import_save_file/README.rst +++ b/account_bank_statement_import_save_file/README.rst @@ -16,6 +16,11 @@ Contributors * Holger Brunn +Icon +---- + +* https://commons.wikimedia.org/wiki/File:Paper_clip_font_awesome.svg + Maintainer ---------- diff --git a/account_bank_statement_import_save_file/static/description/icon.png b/account_bank_statement_import_save_file/static/description/icon.png index 1a22a285caee435c1257b688f5b45cc3c6682a33..49dedcf455ba2861afbd03daacacb70e235100a7 100644 GIT binary patch literal 7226 zcmaiZS2P?B`}8i0jk<^$(XAG&)k#>QEvxtFy%SNQ_ufl{)ypD?7Cm}z(FM^HqC^d% zm;dj*{w}`roS8XiF6TTqb0$VzRe=bf79Rir5Fr(1HUHD#{{f8qANNU`kNqdO7Rm~; zfXDw`K}T8If6kM)iU#fg0BP<2032rjr~RLa=Ydp_!&}Fre*)vvr5o-80G*f zmkx7%{B^!J4h12H5yJ@F*UTWW0LV%nflC3A<>JyWf794lQWfyrn1dq>p94zQHT&iQw}GTCt% ze|yk)@uo}YAOMprgU|W@r}8QdB?42|WXu!uW?|&9@{OgTf2|>FF0qtKpl}0aWJzRL zU4T{;$iy!e)7;1FBKyd)7ka@AkYGzl`M|?ztQmrNwb&(t{FfT3_=de)UQ+~l>^7mN zp8ioDnbluc%+}H0M8%en=FyA+rrId_s?Jy;yS7X|LPcd-qrFzUAFWd-QW^|qqF8m5 zmQ=Fc*;e_=D{yWwrHx3dA{7J!az}|PeNIO+4^wg%q&mYND8*YIhZ*qj&N>!%6nh_v zF;11_vaiHkrwS|mVc)Yr?)Na&FdFgx?%NGXb;&q4Mm}dt*!a4hq75yNR->13Yr_N- zK8a3h>YLI^O`J_3H@{Fxy-=>OF$}?wC@;kU<|GzqMjpD9|M2ZKf10^vH69i+kypNx znPE#kI&b_9pxsbGHm1^gKWL@;BHs}8t;;FCN8acmO+TK4X?ZX<-oSvqBhj#r4Z?hk z)3gPOnx&Yu#g!LM_P{P>){Z_fF97>#@tW};zVaLmeO~(rjQB6&8f991$!PhG9!BFS znBnuoFF5X2_M(sL;Ev#+M9Jfgcq8$E4$NPeKSA(58!{t=z~!SyE(wU<_L214aJ^a7 zEkE9B>-=91XPPL47j}Hdm{^A8aRy_w+PlXcem-M1=U+<-q?pxI-%w*Owt4_7EolA> zsj#TYde}{%PgFDsyuHk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ject: [PATCH 09/34] OCA Transbot updated translations from Transifex --- .../i18n/en.po | 38 ++++++++++++++++++ .../i18n/es.po | 38 ++++++++++++++++++ .../i18n/fr.po | 38 ++++++++++++++++++ .../i18n/lt_LT.po | 38 ++++++++++++++++++ .../i18n/nl.po | 39 +++++++++++++++++++ .../i18n/sl.po | 39 +++++++++++++++++++ 6 files changed, 230 insertions(+) create mode 100644 account_bank_statement_import_save_file/i18n/en.po create mode 100644 account_bank_statement_import_save_file/i18n/es.po create mode 100644 account_bank_statement_import_save_file/i18n/fr.po create mode 100644 account_bank_statement_import_save_file/i18n/lt_LT.po create mode 100644 account_bank_statement_import_save_file/i18n/nl.po create mode 100644 account_bank_statement_import_save_file/i18n/sl.po diff --git a/account_bank_statement_import_save_file/i18n/en.po b/account_bank_statement_import_save_file/i18n/en.po new file mode 100644 index 0000000..d0cd2ee --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/en.po @@ -0,0 +1,38 @@ +# 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: OCA Transbot \n" +"Language-Team: English (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/en/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: en\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 "Bank Statement" + +#. 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 "Import Bank Statement" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "Import file" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "Imported file" diff --git a/account_bank_statement_import_save_file/i18n/es.po b/account_bank_statement_import_save_file/i18n/es.po new file mode 100644 index 0000000..7aebef5 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/es.po @@ -0,0 +1,38 @@ +# 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: Spanish (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\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,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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/fr.po b/account_bank_statement_import_save_file/i18n/fr.po new file mode 100644 index 0000000..e72d0f9 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/fr.po @@ -0,0 +1,38 @@ +# 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: French (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\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,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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/lt_LT.po b/account_bank_statement_import_save_file/i18n/lt_LT.po new file mode 100644 index 0000000..44dd135 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/lt_LT.po @@ -0,0 +1,38 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt_LT\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,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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/nl.po b/account_bank_statement_import_save_file/i18n/nl.po new file mode 100644 index 0000000..b406516 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/nl.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_save_file +# +# Translators: +# Erwin van der Ploeg , 2015 +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 17:55+0000\n" +"Last-Translator: Erwin van der Ploeg \n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\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,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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "Importeer bestand" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "Geïmporteerd bestand" diff --git a/account_bank_statement_import_save_file/i18n/sl.po b/account_bank_statement_import_save_file/i18n/sl.po new file mode 100644 index 0000000..22153b4 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/sl.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_save_file +# +# Translators: +# Matjaž Mozetič , 2015 +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-07 14:22+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\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,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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "Uvoz datoteke" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "Uvožena datoteka" From f6ee8e0eb167e50141cdb2a5d459052818ce9c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 9 Oct 2015 09:59:36 +0200 Subject: [PATCH 10/34] prefix versions with 8.0 --- account_bank_statement_import_save_file/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/__openerp__.py b/account_bank_statement_import_save_file/__openerp__.py index 57b4097..bdf5a38 100644 --- a/account_bank_statement_import_save_file/__openerp__.py +++ b/account_bank_statement_import_save_file/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { "name": "Save imported bank statements", - "version": "1.0", + "version": "8.0.1.0.0", "author": "Therp BV", "license": "AGPL-3", "category": "Accounting & Finance", From 316d7315c6ca83933ea967882aa4f5f69da3d136 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 10 Oct 2015 21:23:01 -0400 Subject: [PATCH 11/34] OCA Transbot updated translations from Transifex --- .../i18n/pt_BR.po | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 account_bank_statement_import_save_file/i18n/pt_BR.po diff --git a/account_bank_statement_import_save_file/i18n/pt_BR.po b/account_bank_statement_import_save_file/i18n/pt_BR.po new file mode 100644 index 0000000..fb4c685 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/pt_BR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_save_file +# +# Translators: +# danimaribeiro , 2015 +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-09 09:23+0000\n" +"PO-Revision-Date: 2015-10-09 00:25+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\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,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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "Importar arquivo." + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "Arquivo importado." From 331f4f888724f521e9b3e053416a01a619f6103f Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 14 Oct 2015 02:19:40 +0200 Subject: [PATCH 12/34] Make modules uninstallable --- account_bank_statement_import_save_file/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/__openerp__.py b/account_bank_statement_import_save_file/__openerp__.py index bdf5a38..9cabc98 100644 --- a/account_bank_statement_import_save_file/__openerp__.py +++ b/account_bank_statement_import_save_file/__openerp__.py @@ -37,7 +37,7 @@ ], "post_init_hook": '_post_init_hook', "auto_install": False, - "installable": True, + 'installable': False, "application": False, "external_dependencies": { 'python': [], From f3522eb75976b767eecb126a41f211bf72215b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Mon, 15 Aug 2016 18:54:43 +0200 Subject: [PATCH 13/34] remove en.po that was erroneously created by transbot --- .../i18n/en.po | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 account_bank_statement_import_save_file/i18n/en.po diff --git a/account_bank_statement_import_save_file/i18n/en.po b/account_bank_statement_import_save_file/i18n/en.po deleted file mode 100644 index d0cd2ee..0000000 --- a/account_bank_statement_import_save_file/i18n/en.po +++ /dev/null @@ -1,38 +0,0 @@ -# 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: OCA Transbot \n" -"Language-Team: English (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/en/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: en\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 "Bank Statement" - -#. 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 "Import Bank Statement" - -#. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 -msgid "Import file" -msgstr "Import file" - -#. module: account_bank_statement_import_save_file -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form -msgid "Imported file" -msgstr "Imported file" From aebeefc9268fd6432b10f9f190757912617069b5 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 14:47:55 +0200 Subject: [PATCH 14/34] Rename manifest files --- .../{__openerp__.py => __manifest__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename account_bank_statement_import_save_file/{__openerp__.py => __manifest__.py} (100%) diff --git a/account_bank_statement_import_save_file/__openerp__.py b/account_bank_statement_import_save_file/__manifest__.py similarity index 100% rename from account_bank_statement_import_save_file/__openerp__.py rename to account_bank_statement_import_save_file/__manifest__.py From 404ccefa710cf2ca95e0c9fb7b25c961ede6619c Mon Sep 17 00:00:00 2001 From: Rudolf Schnapka Date: Sun, 4 Oct 2015 11:57:58 +0200 Subject: [PATCH 15/34] german translations for bank-statement-import --- .../i18n/de.po | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 account_bank_statement_import_save_file/i18n/de.po diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po new file mode 100644 index 0000000..d12e7dd --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -0,0 +1,39 @@ +# 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-10-04 11:51+0200\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8.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 "Kontoauszug" + +#. 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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "Importdatei" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "Importierte Datei" From cab4e686b758e2e8dbff253ab9484564ba994021 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 25 Oct 2015 18:32:37 -0400 Subject: [PATCH 16/34] OCA Transbot updated translations from Transifex --- .../i18n/de.po | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po index d12e7dd..21d54e5 100644 --- a/account_bank_statement_import_save_file/i18n/de.po +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -1,27 +1,26 @@ # 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-10-04 11:51+0200\n" -"Last-Translator: Rudolf Schnapka \n" -"Language-Team: \n" +"POT-Creation-Date: 2015-10-24 18:37+0000\n" +"PO-Revision-Date: 2015-10-24 18:37+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" +"Content-Transfer-Encoding: \n" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.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 "Kontoauszug" +msgstr "" #. module: account_bank_statement_import_save_file #: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import @@ -31,9 +30,9 @@ msgstr "Kontoauszug importieren" #. module: account_bank_statement_import_save_file #: field:account.bank.statement,import_file:0 msgid "Import file" -msgstr "Importdatei" +msgstr "" #. module: account_bank_statement_import_save_file #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" -msgstr "Importierte Datei" +msgstr "" From dbc1fa42ae3e7338daf2f770307402f0eb89eed4 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 31 Oct 2015 22:44:06 -0400 Subject: [PATCH 17/34] OCA Transbot updated translations from Transifex --- account_bank_statement_import_save_file/i18n/de.po | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po index 21d54e5..3668bc2 100644 --- a/account_bank_statement_import_save_file/i18n/de.po +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -3,13 +3,14 @@ # * account_bank_statement_import_save_file # # Translators: +# Rudolf Schnapka , 2015 msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-24 18:37+0000\n" -"PO-Revision-Date: 2015-10-24 18:37+0000\n" -"Last-Translator: OCA Transbot \n" +"POT-Creation-Date: 2015-10-25 22:36+0000\n" +"PO-Revision-Date: 2015-10-26 10:21+0000\n" +"Last-Translator: Rudolf Schnapka \n" "Language-Team: German (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,7 +21,7 @@ msgstr "" #. 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 "" +msgstr "Kontoauszug" #. module: account_bank_statement_import_save_file #: model:ir.model,name:account_bank_statement_import_save_file.model_account_bank_statement_import @@ -30,9 +31,9 @@ msgstr "Kontoauszug importieren" #. module: account_bank_statement_import_save_file #: field:account.bank.statement,import_file:0 msgid "Import file" -msgstr "" +msgstr "Datei importieren" #. module: account_bank_statement_import_save_file #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" -msgstr "" +msgstr "Importierte Datei" From 92148520fed60aec1d95dcbb4d1ba05b0a877656 Mon Sep 17 00:00:00 2001 From: "Ronald Portier (Therp BV)" Date: Fri, 2 Oct 2015 00:12:32 +0200 Subject: [PATCH 18/34] Import exceptions.Warning as UserError. This according to OCA guidelines. Also reformat README.rst to keep lines within limit. --- .../__manifest__.py | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/account_bank_statement_import_save_file/__manifest__.py b/account_bank_statement_import_save_file/__manifest__.py index 9cabc98..20c735c 100644 --- a/account_bank_statement_import_save_file/__manifest__.py +++ b/account_bank_statement_import_save_file/__manifest__.py @@ -1,8 +1,7 @@ # -*- coding: utf-8 -*- ############################################################################## # -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV . +# Copyright (C) 2015 Therp BV . # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -19,27 +18,20 @@ # ############################################################################## { - "name": "Save imported bank statements", - "version": "8.0.1.0.0", - "author": "Therp BV", - "license": "AGPL-3", - "category": "Accounting & Finance", - "summary": "Keep imported bank statements as raw data", - "depends": [ + 'name': 'Save imported bank statements', + 'version': '8.0.1.0.1', + '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", + 'data': [ + 'views/account_bank_statement.xml', ], - "qweb": [ - ], - "test": [ - ], - "post_init_hook": '_post_init_hook', - "auto_install": False, - 'installable': False, - "application": False, - "external_dependencies": { - 'python': [], - }, + 'post_init_hook': '_post_init_hook', + 'auto_install': False, + 'installable': True, + 'application': False, } From 2f29b23ced92b24dce7baf902305c7c6137123f5 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Sun, 15 Nov 2015 04:16:58 +0100 Subject: [PATCH 19/34] don't error out if there are no attachments --- account_bank_statement_import_save_file/hooks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account_bank_statement_import_save_file/hooks.py b/account_bank_statement_import_save_file/hooks.py index 908c225..2681073 100644 --- a/account_bank_statement_import_save_file/hooks.py +++ b/account_bank_statement_import_save_file/hooks.py @@ -56,6 +56,9 @@ def _post_init_hook_migrate_account_banking_imported_file(cr, pool): attachment_ids = [attachment_id for attachment_id, in cr.fetchall()] + if not attachment_ids: + return + # assign respective attachment to all statements pointing to an imported # banking file cr.execute( From c09a95ce208fb285a0e9ab442765cb23f582629c Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 23 Nov 2015 12:10:21 +0100 Subject: [PATCH 20/34] have one list of notifications [IMP] use a nice formatting to show notifications for imported file --- .../models/account_bank_statement_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 875e2c7..21f04a5 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -46,5 +46,7 @@ class AccountBankStatementImport(models.TransientModel): 'res_id': statement_id, 'type': 'binary', 'datas': base64.b64encode(data_file), - 'description': notifications, + 'description': '\n'.join( + '%(type)s: %(message)' % notification + for notification in notifications) or False, } From 3b64e069bac82522e2ff0fff7012e061417143e8 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 9 Dec 2015 15:35:33 +0100 Subject: [PATCH 21/34] incomplete format string --- .../models/account_bank_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 21f04a5..999781e 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -47,6 +47,6 @@ class AccountBankStatementImport(models.TransientModel): 'type': 'binary', 'datas': base64.b64encode(data_file), 'description': '\n'.join( - '%(type)s: %(message)' % notification + '%(type)s: %(message)s' % notification for notification in notifications) or False, } From b62222afbb92738456f9a770ecdba8a1f6ff7846 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Fri, 8 Jan 2016 23:59:28 -0500 Subject: [PATCH 22/34] OCA Transbot updated translations from Transifex --- .../i18n/de.po | 21 ++++++-- .../i18n/es.po | 27 ++++++++-- .../i18n/fi.po | 53 ++++++++++++++++++ .../i18n/fr.po | 28 +++++++--- .../i18n/it.po | 53 ++++++++++++++++++ .../i18n/lt.po | 53 ++++++++++++++++++ .../i18n/pt_BR.po | 23 ++++++-- .../i18n/pt_PT.po | 54 +++++++++++++++++++ .../i18n/sl.po | 21 ++++++-- 9 files changed, 313 insertions(+), 20 deletions(-) create mode 100644 account_bank_statement_import_save_file/i18n/fi.po create mode 100644 account_bank_statement_import_save_file/i18n/it.po create mode 100644 account_bank_statement_import_save_file/i18n/lt.po create mode 100644 account_bank_statement_import_save_file/i18n/pt_PT.po diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po index 3668bc2..370e85c 100644 --- a/account_bank_statement_import_save_file/i18n/de.po +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -8,9 +8,9 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-25 22:36+0000\n" -"PO-Revision-Date: 2015-10-26 10:21+0000\n" -"Last-Translator: Rudolf Schnapka \n" +"POT-Creation-Date: 2017-03-04 01:15+0000\n" +"PO-Revision-Date: 2017-03-06 19:00+0000\n" +"Last-Translator: OCA Transbot \n" "Language-Team: German (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -23,6 +23,16 @@ msgstr "" msgid "Bank Statement" msgstr "Kontoauszug" +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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" @@ -37,3 +47,8 @@ msgstr "Datei importieren" #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" msgstr "Importierte Datei" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Besitzer" diff --git a/account_bank_statement_import_save_file/i18n/es.po b/account_bank_statement_import_save_file/i18n/es.po index 7aebef5..1216aed 100644 --- a/account_bank_statement_import_save_file/i18n/es.po +++ b/account_bank_statement_import_save_file/i18n/es.po @@ -3,13 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: +# Antonio Trueba, 2016 +# Antonio Trueba, 2016 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" +"POT-Creation-Date: 2016-12-14 13:07+0000\n" +"PO-Revision-Date: 2016-12-22 09:16+0000\n" +"Last-Translator: OCA Transbot \n" "Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,8 +22,18 @@ msgstr "" #. 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 +#: field:account.bank.statement,import_date:0 +msgid "Date Created" msgstr "" +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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" @@ -30,9 +42,14 @@ msgstr "Importar extracto bancario" #. module: account_bank_statement_import_save_file #: field:account.bank.statement,import_file:0 msgid "Import file" -msgstr "" +msgstr "Importar archivo" #. module: account_bank_statement_import_save_file #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" -msgstr "" +msgstr "Archivo importado" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Propietario" diff --git a/account_bank_statement_import_save_file/i18n/fi.po b/account_bank_statement_import_save_file/i18n/fi.po new file mode 100644 index 0000000..2af0e39 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/fi.po @@ -0,0 +1,53 @@ +# 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: 2016-12-31 01:32+0000\n" +"PO-Revision-Date: 2017-01-11 08:07+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\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 +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/fr.po b/account_bank_statement_import_save_file/i18n/fr.po index e72d0f9..7245b5c 100644 --- a/account_bank_statement_import_save_file/i18n/fr.po +++ b/account_bank_statement_import_save_file/i18n/fr.po @@ -3,13 +3,14 @@ # * account_bank_statement_import_save_file # # Translators: +# Christophe CHAUVET , 2016 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" +"POT-Creation-Date: 2016-12-24 00:33+0000\n" +"PO-Revision-Date: 2016-12-30 08:19+0000\n" +"Last-Translator: Christophe CHAUVET \n" "Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,7 +21,17 @@ msgstr "" #. 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 "" +msgstr "Relevé bancaire" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "Date de création" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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 @@ -30,9 +41,14 @@ msgstr "Importer Relevé Bancaire" #. module: account_bank_statement_import_save_file #: field:account.bank.statement,import_file:0 msgid "Import file" -msgstr "" +msgstr "Importation de fichier" #. module: account_bank_statement_import_save_file #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" -msgstr "" +msgstr "Fichier importé" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Propriétaire" diff --git a/account_bank_statement_import_save_file/i18n/it.po b/account_bank_statement_import_save_file/i18n/it.po new file mode 100644 index 0000000..d38275c --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/it.po @@ -0,0 +1,53 @@ +# 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: 2016-09-21 16:09+0000\n" +"PO-Revision-Date: 2016-10-04 09:43+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\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 +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Proprietario" diff --git a/account_bank_statement_import_save_file/i18n/lt.po b/account_bank_statement_import_save_file/i18n/lt.po new file mode 100644 index 0000000..3e73dde --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/lt.po @@ -0,0 +1,53 @@ +# 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: 2016-10-14 13:36+0000\n" +"PO-Revision-Date: 2016-10-11 09:51+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Lithuanian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/lt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt\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 +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/pt_BR.po b/account_bank_statement_import_save_file/i18n/pt_BR.po index fb4c685..f9be589 100644 --- a/account_bank_statement_import_save_file/i18n/pt_BR.po +++ b/account_bank_statement_import_save_file/i18n/pt_BR.po @@ -4,13 +4,15 @@ # # Translators: # danimaribeiro , 2015 +# danimaribeiro , 2015 +# Paulo Ricardo , 2016 msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-09 09:23+0000\n" -"PO-Revision-Date: 2015-10-09 00:25+0000\n" -"Last-Translator: danimaribeiro \n" +"POT-Creation-Date: 2016-06-11 07:26+0000\n" +"PO-Revision-Date: 2016-06-14 12:13+0000\n" +"Last-Translator: Paulo Ricardo \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -23,6 +25,16 @@ msgstr "" msgid "Bank Statement" msgstr "Extrato bancário" +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "Data de Criação" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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" @@ -37,3 +49,8 @@ msgstr "Importar arquivo." #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" msgstr "Arquivo importado." + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Proprietário" diff --git a/account_bank_statement_import_save_file/i18n/pt_PT.po b/account_bank_statement_import_save_file/i18n/pt_PT.po new file mode 100644 index 0000000..c7bfee5 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/pt_PT.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: +# Pedro Castro Silva , 2016 +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-08-18 10:27+0000\n" +"PO-Revision-Date: 2016-09-07 09:16+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\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 +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "Data de Criação" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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 +#: field:account.bank.statement,import_file:0 +msgid "Import file" +msgstr "Importar ficheiro" + +#. module: account_bank_statement_import_save_file +#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +msgid "Imported file" +msgstr "Ficheiro importado" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Dono" diff --git a/account_bank_statement_import_save_file/i18n/sl.po b/account_bank_statement_import_save_file/i18n/sl.po index 22153b4..3642a19 100644 --- a/account_bank_statement_import_save_file/i18n/sl.po +++ b/account_bank_statement_import_save_file/i18n/sl.po @@ -3,13 +3,13 @@ # * account_bank_statement_import_save_file # # Translators: -# Matjaž Mozetič , 2015 +# Matjaž Mozetič , 2015-2016 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-07 14:22+0000\n" +"POT-Creation-Date: 2016-06-11 07:26+0000\n" +"PO-Revision-Date: 2016-06-12 22:42+0000\n" "Last-Translator: Matjaž Mozetič \n" "Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/sl/)\n" "MIME-Version: 1.0\n" @@ -23,6 +23,16 @@ msgstr "" msgid "Bank Statement" msgstr "Bančni izpisek" +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_date:0 +msgid "Date Created" +msgstr "Datum nastanka" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_log:0 +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" @@ -37,3 +47,8 @@ msgstr "Uvoz datoteke" #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form msgid "Imported file" msgstr "Uvožena datoteka" + +#. module: account_bank_statement_import_save_file +#: field:account.bank.statement,import_user:0 +msgid "Owner" +msgstr "Lastnik" From e07b0ac366b797507d0f304a92c4233b148ff5d2 Mon Sep 17 00:00:00 2001 From: Mourad Elhadj Mimoune Date: Fri, 24 Mar 2017 12:12:12 +0100 Subject: [PATCH 23/34] account_bank_statement_import_save_file: Migrated to 10.0 --- .../README.rst | 38 ++++++++--- .../__init__.py | 22 +------ .../__manifest__.py | 23 ++----- .../hooks.py | 25 +------- .../i18n/fr.po | 2 +- .../models/__init__.py | 22 +------ .../models/account_bank_statement.py | 24 ++----- .../models/account_bank_statement_import.py | 35 ++++------ .../tests/__init__.py | 22 +------ .../tests/test_save_file.py | 64 +++++++------------ .../views/account_bank_statement.xml | 42 ++++++------ 11 files changed, 102 insertions(+), 217 deletions(-) diff --git a/account_bank_statement_import_save_file/README.rst b/account_bank_statement_import_save_file/README.rst index 37ff0bf..249b8e2 100644 --- a/account_bank_statement_import_save_file/README.rst +++ b/account_bank_statement_import_save_file/README.rst @@ -1,3 +1,8 @@ +.. 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 ============================ @@ -8,28 +13,41 @@ 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 +`_. 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 `_. + Contributors ------------ * Holger Brunn - -Icon ----- - -* https://commons.wikimedia.org/wiki/File:Paper_clip_font_awesome.svg +* Mourad EL HADJ MIMOUNE Maintainer ---------- -.. image:: http://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: http://odoo-community.org + +.. 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. +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 http://odoo-community.org. +To contribute to this module, please visit https://odoo-community.org. \ No newline at end of file diff --git a/account_bank_statement_import_save_file/__init__.py b/account_bank_statement_import_save_file/__init__.py index a1813e6..d0b326e 100644 --- a/account_bank_statement_import_save_file/__init__.py +++ b/account_bank_statement_import_save_file/__init__.py @@ -1,22 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV . -# -# 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 . -# -############################################################################## +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from . import models from .hooks import _post_init_hook diff --git a/account_bank_statement_import_save_file/__manifest__.py b/account_bank_statement_import_save_file/__manifest__.py index 20c735c..91347c2 100644 --- a/account_bank_statement_import_save_file/__manifest__.py +++ b/account_bank_statement_import_save_file/__manifest__.py @@ -1,25 +1,10 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Copyright (C) 2015 Therp BV . -# -# 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 . -# -############################################################################## +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + { 'name': 'Save imported bank statements', - 'version': '8.0.1.0.1', + 'version': '10.0.1.0.0', 'author': 'Odoo Community Association (OCA), Therp BV', 'license': 'AGPL-3', 'category': 'Banking addons', diff --git a/account_bank_statement_import_save_file/hooks.py b/account_bank_statement_import_save_file/hooks.py index 2681073..f2b8fd3 100644 --- a/account_bank_statement_import_save_file/hooks.py +++ b/account_bank_statement_import_save_file/hooks.py @@ -1,24 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV . -# -# 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 . -# -############################################################################## -from openerp import SUPERUSER_ID +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). def _post_init_hook(cr, pool): @@ -89,7 +71,6 @@ def _post_init_hook_migrate_account_banking_imported_file(cr, pool): (tuple(attachment_ids),) ) for attachment_id, content in cr.fetchall(): - pool['ir.attachment'].write( - cr, SUPERUSER_ID, + pool['ir.attachment'].sudo().write( [attachment_id], {'datas': str(content)}) diff --git a/account_bank_statement_import_save_file/i18n/fr.po b/account_bank_statement_import_save_file/i18n/fr.po index 7245b5c..599ec40 100644 --- a/account_bank_statement_import_save_file/i18n/fr.po +++ b/account_bank_statement_import_save_file/i18n/fr.po @@ -41,7 +41,7 @@ msgstr "Importer Relevé Bancaire" #. module: account_bank_statement_import_save_file #: field:account.bank.statement,import_file:0 msgid "Import file" -msgstr "Importation de fichier" +msgstr "Fichier importé" #. module: account_bank_statement_import_save_file #: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form diff --git a/account_bank_statement_import_save_file/models/__init__.py b/account_bank_statement_import_save_file/models/__init__.py index 84bff13..9413d5c 100644 --- a/account_bank_statement_import_save_file/models/__init__.py +++ b/account_bank_statement_import_save_file/models/__init__.py @@ -1,22 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV . -# -# 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 . -# -############################################################################## +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from . import account_bank_statement from . import account_bank_statement_import diff --git a/account_bank_statement_import_save_file/models/account_bank_statement.py b/account_bank_statement_import_save_file/models/account_bank_statement.py index 9b7073b..a221c13 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement.py @@ -1,24 +1,8 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV (). -# -# 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 . -# -############################################################################## -from openerp import models, fields +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models, fields class AccountBankStatement(models.Model): diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 999781e..7263dc4 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -1,41 +1,28 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV (). -# -# 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 . -# -############################################################################## +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + import base64 -from openerp import models, api +from odoo import models, api class AccountBankStatementImport(models.TransientModel): _inherit = 'account.bank.statement.import' @api.model - def _import_file(self, data_file): - (statement_ids, notifications) = \ - super(AccountBankStatementImport, self)._import_file(data_file) + def import_file(self): + action = \ + super(AccountBankStatementImport, self).import_file() + statement_ids = action.get('context', {}).get('statement_ids') + notifications = action.get('context', {}).get('notifications') + data_file = base64.b64decode(self.data_file) if statement_ids: self.env['account.bank.statement'].browse(statement_ids).write({ 'import_file': self.env['ir.attachment'].create( self._create_import_file_attachment_data( data_file, statement_ids[0], notifications)).id, }) - return (statement_ids, notifications) + return action @api.model def _create_import_file_attachment_data(self, data_file, statement_id, diff --git a/account_bank_statement_import_save_file/tests/__init__.py b/account_bank_statement_import_save_file/tests/__init__.py index f06dd21..6086380 100644 --- a/account_bank_statement_import_save_file/tests/__init__.py +++ b/account_bank_statement_import_save_file/tests/__init__.py @@ -1,21 +1,5 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV . -# -# 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 . -# -############################################################################## +# © 2015 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from . import test_save_file diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py index 7e5b186..3a65886 100644 --- a/account_bank_statement_import_save_file/tests/test_save_file.py +++ b/account_bank_statement_import_save_file/tests/test_save_file.py @@ -1,26 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV . -# -# 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 . -# -############################################################################## +# © 2015 Therp BV (). +# © 2017 Today Mourad EL HADJ MIMOUNE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + import base64 -from openerp import api, models -from openerp.tests.common import TransactionCase +from odoo import api, models +from odoo.tests.common import TransactionCase acc_number = 'BE1234567890' @@ -48,31 +33,26 @@ class HelloWorldParser(models.TransientModel): class TestSaveFile(TransactionCase): + def setUp(self): + super(TestSaveFile, self).setUp() + self.currency_eur_id = self.env.ref("base.EUR").id + self.bank_journal_euro = self.env['account.journal'].create( + {'name': 'Bank', + 'type': 'bank', + 'code': 'BNK_test_imp', + 'currency_id': self.currency_eur_id + }) + def test_SaveFile(self): HelloWorldParser._build_model(self.registry, self.cr) import_wizard = self.env['account.bank.statement.import'] - import_wizard._prepare_setup() - import_wizard._setup_base(False) - import_wizard._setup_fields() - import_wizard._setup_complete() - import_wizard._auto_init() - journal_id = self.env['res.partner.bank'].search([ - ('acc_number', '=', acc_number), - ]).journal_id.id - if not journal_id: - account = import_wizard._create_bank_account(acc_number) - journal_id = self.env['account.journal']\ - .search([ - '|', - ('currency.name', '=', 'EUR'), - ('currency', '=', False) - ]).ids[0] - account.journal_id = journal_id - action = import_wizard.with_context(journal_id=journal_id)\ - .create({'data_file': base64.b64encode('hello world')})\ - .import_file() + journal_id = self.bank_journal_euro.id + import_wizard_id = import_wizard.with_context(journal_id=journal_id)\ + .create( + {'data_file': base64.b64encode(bytes('Hello world'))}) + action = import_wizard_id.import_file() for statement in self.env['account.bank.statement'].browse( action['context']['statement_ids']): self.assertEqual( base64.b64decode(statement.import_file.datas), - 'hello world') + 'Hello world') diff --git a/account_bank_statement_import_save_file/views/account_bank_statement.xml b/account_bank_statement_import_save_file/views/account_bank_statement.xml index ab0ce41..c1375ac 100644 --- a/account_bank_statement_import_save_file/views/account_bank_statement.xml +++ b/account_bank_statement_import_save_file/views/account_bank_statement.xml @@ -1,25 +1,23 @@ - - - - account.bank.statement - - - - + + + account.bank.statement + + + + + - - - - - - - + - - - - - - - + + + + + + + + + + + From 9f1229656a6871f2769fe53188d2e60b6fb46658 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 11 Apr 2017 23:01:16 +0200 Subject: [PATCH 24/34] crash in account_bank_statement_save_file --- .../models/account_bank_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 7263dc4..c61fd65 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -9,7 +9,7 @@ from odoo import models, api class AccountBankStatementImport(models.TransientModel): _inherit = 'account.bank.statement.import' - @api.model + @api.multi def import_file(self): action = \ super(AccountBankStatementImport, self).import_file() From cfb8bd13b0cee47a5ef592e0247107f12ac9a3e6 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Mon, 1 May 2017 16:50:16 +0200 Subject: [PATCH 25/34] OCA Transbot updated translations from Transifex --- .../i18n/de.po | 22 ++++---- .../i18n/es.po | 23 ++++---- .../i18n/fi.po | 21 ++++---- .../i18n/fr.po | 22 ++++---- .../i18n/fr_CH.po | 54 +++++++++++++++++++ .../i18n/gl.po | 54 +++++++++++++++++++ .../i18n/it.po | 21 ++++---- .../i18n/lt.po | 21 ++++---- .../i18n/nb_NO.po | 54 +++++++++++++++++++ .../i18n/nl.po | 31 ++++++++--- .../i18n/pt_BR.po | 24 ++++----- .../i18n/pt_PT.po | 22 ++++---- .../i18n/sl.po | 22 ++++---- 13 files changed, 284 insertions(+), 107 deletions(-) create mode 100644 account_bank_statement_import_save_file/i18n/fr_CH.po create mode 100644 account_bank_statement_import_save_file/i18n/gl.po create mode 100644 account_bank_statement_import_save_file/i18n/nb_NO.po diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po index 370e85c..75881aa 100644 --- a/account_bank_statement_import_save_file/i18n/de.po +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -3,15 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# Rudolf Schnapka , 2015 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-03-04 01:15+0000\n" -"PO-Revision-Date: 2017-03-06 19:00+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: German (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/de/)\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 , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -24,12 +24,12 @@ msgid "Bank Statement" msgstr "Kontoauszug" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Beschreibung" @@ -39,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Kontoauszug importieren" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Besitzer" diff --git a/account_bank_statement_import_save_file/i18n/es.po b/account_bank_statement_import_save_file/i18n/es.po index 1216aed..542fe24 100644 --- a/account_bank_statement_import_save_file/i18n/es.po +++ b/account_bank_statement_import_save_file/i18n/es.po @@ -3,16 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# Antonio Trueba, 2016 -# Antonio Trueba, 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-14 13:07+0000\n" -"PO-Revision-Date: 2016-12-22 09:16+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/es/)\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 , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -25,12 +24,12 @@ msgid "Bank Statement" msgstr "Extracto bancario" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Descripción" @@ -40,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Importar extracto bancario" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Propietario" diff --git a/account_bank_statement_import_save_file/i18n/fi.po b/account_bank_statement_import_save_file/i18n/fi.po index 2af0e39..3abb122 100644 --- a/account_bank_statement_import_save_file/i18n/fi.po +++ b/account_bank_statement_import_save_file/i18n/fi.po @@ -3,14 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-31 01:32+0000\n" -"PO-Revision-Date: 2017-01-11 08:07+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Finnish (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fi/)\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 , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -23,12 +24,12 @@ msgid "Bank Statement" msgstr "" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Kuvaus" @@ -38,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Tuo pankkiaineisto" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/fr.po b/account_bank_statement_import_save_file/i18n/fr.po index 599ec40..8b65085 100644 --- a/account_bank_statement_import_save_file/i18n/fr.po +++ b/account_bank_statement_import_save_file/i18n/fr.po @@ -3,15 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# Christophe CHAUVET , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-24 00:33+0000\n" -"PO-Revision-Date: 2016-12-30 08:19+0000\n" -"Last-Translator: Christophe CHAUVET \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fr/)\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 , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -24,12 +24,12 @@ msgid "Bank Statement" msgstr "Relevé bancaire" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Description" @@ -39,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Importer Relevé Bancaire" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Propriétaire" diff --git a/account_bank_statement_import_save_file/i18n/fr_CH.po b/account_bank_statement_import_save_file/i18n/fr_CH.po new file mode 100644 index 0000000..488e5d1 --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/fr_CH.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 , 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 , 2017\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_CH\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 "" diff --git a/account_bank_statement_import_save_file/i18n/gl.po b/account_bank_statement_import_save_file/i18n/gl.po new file mode 100644 index 0000000..119c9bb --- /dev/null +++ b/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 , 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 , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: gl\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 "" diff --git a/account_bank_statement_import_save_file/i18n/it.po b/account_bank_statement_import_save_file/i18n/it.po index d38275c..d8a9784 100644 --- a/account_bank_statement_import_save_file/i18n/it.po +++ b/account_bank_statement_import_save_file/i18n/it.po @@ -3,14 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-21 16:09+0000\n" -"PO-Revision-Date: 2016-10-04 09:43+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/it/)\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 , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -23,12 +24,12 @@ msgid "Bank Statement" msgstr "" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Descrizione" @@ -38,16 +39,16 @@ msgid "Import Bank Statement" msgstr "" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Proprietario" diff --git a/account_bank_statement_import_save_file/i18n/lt.po b/account_bank_statement_import_save_file/i18n/lt.po index 3e73dde..d879fa2 100644 --- a/account_bank_statement_import_save_file/i18n/lt.po +++ b/account_bank_statement_import_save_file/i18n/lt.po @@ -3,14 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-10-14 13:36+0000\n" -"PO-Revision-Date: 2016-10-11 09:51+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Lithuanian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/lt/)\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 , 2017\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -23,12 +24,12 @@ msgid "Bank Statement" msgstr "" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Aprašymas" @@ -38,16 +39,16 @@ msgid "Import Bank Statement" msgstr "" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "" diff --git a/account_bank_statement_import_save_file/i18n/nb_NO.po b/account_bank_statement_import_save_file/i18n/nb_NO.po new file mode 100644 index 0000000..d10574f --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/nb_NO.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 , 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 , 2017\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb_NO\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 "" diff --git a/account_bank_statement_import_save_file/i18n/nl.po b/account_bank_statement_import_save_file/i18n/nl.po index b406516..d15e1a5 100644 --- a/account_bank_statement_import_save_file/i18n/nl.po +++ b/account_bank_statement_import_save_file/i18n/nl.po @@ -3,15 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# Erwin van der Ploeg , 2015 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-09-01 16:24+0000\n" -"PO-Revision-Date: 2015-09-01 17:55+0000\n" -"Last-Translator: Erwin van der Ploeg \n" -"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/nl/)\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 , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -23,17 +23,32 @@ msgstr "" 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 -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 "" diff --git a/account_bank_statement_import_save_file/i18n/pt_BR.po b/account_bank_statement_import_save_file/i18n/pt_BR.po index f9be589..5b50a66 100644 --- a/account_bank_statement_import_save_file/i18n/pt_BR.po +++ b/account_bank_statement_import_save_file/i18n/pt_BR.po @@ -3,17 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# danimaribeiro , 2015 -# danimaribeiro , 2015 -# Paulo Ricardo , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-11 07:26+0000\n" -"PO-Revision-Date: 2016-06-14 12:13+0000\n" -"Last-Translator: Paulo Ricardo \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_BR/)\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 , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -26,12 +24,12 @@ msgid "Bank Statement" msgstr "Extrato bancário" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Descrição" @@ -41,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Importar Extrato Bancário" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Proprietário" diff --git a/account_bank_statement_import_save_file/i18n/pt_PT.po b/account_bank_statement_import_save_file/i18n/pt_PT.po index c7bfee5..9bdfe80 100644 --- a/account_bank_statement_import_save_file/i18n/pt_PT.po +++ b/account_bank_statement_import_save_file/i18n/pt_PT.po @@ -3,15 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# Pedro Castro Silva , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-08-18 10:27+0000\n" -"PO-Revision-Date: 2016-09-07 09:16+0000\n" -"Last-Translator: Pedro Castro Silva \n" -"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_PT/)\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 , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -24,12 +24,12 @@ msgid "Bank Statement" msgstr "Extrato Bancário" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Descrição" @@ -39,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Importar Extrato Bancário" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Dono" diff --git a/account_bank_statement_import_save_file/i18n/sl.po b/account_bank_statement_import_save_file/i18n/sl.po index 3642a19..8e9e9c5 100644 --- a/account_bank_statement_import_save_file/i18n/sl.po +++ b/account_bank_statement_import_save_file/i18n/sl.po @@ -3,15 +3,15 @@ # * account_bank_statement_import_save_file # # Translators: -# Matjaž Mozetič , 2015-2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: bank-statement-import (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-11 07:26+0000\n" -"PO-Revision-Date: 2016-06-12 22:42+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/sl/)\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 , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -24,12 +24,12 @@ msgid "Bank Statement" msgstr "Bančni izpisek" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_date:0 +#: 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 -#: field:account.bank.statement,import_log:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_log msgid "Description" msgstr "Opis" @@ -39,16 +39,16 @@ msgid "Import Bank Statement" msgstr "Uvoz bančnega izpiska" #. module: account_bank_statement_import_save_file -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 -#: field:account.bank.statement,import_user:0 +#: model:ir.model.fields,field_description:account_bank_statement_import_save_file.field_account_bank_statement_import_user msgid "Owner" msgstr "Lastnik" From f14a782f2936f4ce4ee802e1bb5f0b2d826ef7b6 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 28 Oct 2017 02:25:17 +0200 Subject: [PATCH 26/34] OCA Transbot updated translations from Transifex --- account_bank_statement_import_save_file/i18n/de.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po index 75881aa..33ccc41 100644 --- a/account_bank_statement_import_save_file/i18n/de.po +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -4,13 +4,14 @@ # # Translators: # OCA Transbot , 2017 +# Udo Bremer , 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 , 2017\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 , 2017\n" "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -26,7 +27,7 @@ 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 "" +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 From f4b6ae5c390d257568264f01dee098281d36a5fd Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 1 Dec 2017 19:26:53 +0100 Subject: [PATCH 27/34] account_bank_statement_import_save_file: Fix filename --- .../models/account_bank_statement_import.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index c61fd65..e5e216a 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -20,19 +20,21 @@ class AccountBankStatementImport(models.TransientModel): self.env['account.bank.statement'].browse(statement_ids).write({ 'import_file': self.env['ir.attachment'].create( self._create_import_file_attachment_data( - data_file, statement_ids[0], notifications)).id, + data_file, statement_ids[0], notifications, + self.filename)).id, }) return action @api.model def _create_import_file_attachment_data(self, data_file, statement_id, - notifications): + notifications, filename=None): return { - 'name': '', + 'name': filename or '', 'res_model': 'account.bank.statement', 'res_id': statement_id, 'type': 'binary', 'datas': base64.b64encode(data_file), + 'datas_fname': filename or '', 'description': '\n'.join( '%(type)s: %(message)s' % notification for notification in notifications) or False, From e9bc68108d535c606390581c749f1081217d761b Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 24 Feb 2018 05:01:52 +0100 Subject: [PATCH 28/34] OCA Transbot updated translations from Transifex --- .../i18n/es.po | 9 ++-- .../i18n/hr.po | 54 +++++++++++++++++++ 2 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 account_bank_statement_import_save_file/i18n/hr.po diff --git a/account_bank_statement_import_save_file/i18n/es.po b/account_bank_statement_import_save_file/i18n/es.po index 542fe24..f2ba99f 100644 --- a/account_bank_statement_import_save_file/i18n/es.po +++ b/account_bank_statement_import_save_file/i18n/es.po @@ -4,13 +4,14 @@ # # Translators: # OCA Transbot , 2017 +# enjolras , 2018 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 , 2017\n" +"POT-Creation-Date: 2018-02-21 01:41+0000\n" +"PO-Revision-Date: 2018-02-21 01:41+0000\n" +"Last-Translator: enjolras , 2018\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -26,7 +27,7 @@ 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 "" +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 diff --git a/account_bank_statement_import_save_file/i18n/hr.po b/account_bank_statement_import_save_file/i18n/hr.po new file mode 100644 index 0000000..2921faf --- /dev/null +++ b/account_bank_statement_import_save_file/i18n/hr.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: +# Bole , 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 , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\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" From dbff600933e61afb817d0866cf6481c97cbc7790 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Fri, 22 Jun 2018 23:52:17 +0000 Subject: [PATCH 29/34] Update account_bank_statement_import_save_file.pot --- ...ccount_bank_statement_import_save_file.pot | 50 +++++++++++++++++++ .../i18n/de.po | 4 +- .../i18n/es.po | 4 +- .../i18n/fi.po | 4 +- .../i18n/fr.po | 4 +- .../i18n/fr_CH.po | 7 +-- .../i18n/gl.po | 4 +- .../i18n/hr.po | 7 +-- .../i18n/it.po | 4 +- .../i18n/lt.po | 7 +-- .../i18n/lt_LT.po | 29 ++++++++--- .../i18n/nb_NO.po | 7 +-- .../i18n/nl.po | 4 +- .../i18n/pt_BR.po | 7 +-- .../i18n/pt_PT.po | 7 +-- .../i18n/sl.po | 7 +-- 16 files changed, 115 insertions(+), 41 deletions(-) create mode 100644 account_bank_statement_import_save_file/i18n/account_bank_statement_import_save_file.pot diff --git a/account_bank_statement_import_save_file/i18n/account_bank_statement_import_save_file.pot b/account_bank_statement_import_save_file/i18n/account_bank_statement_import_save_file.pot new file mode 100644 index 0000000..75b100c --- /dev/null +++ b/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 "" + diff --git a/account_bank_statement_import_save_file/i18n/de.po b/account_bank_statement_import_save_file/i18n/de.po index 33ccc41..68c79f7 100644 --- a/account_bank_statement_import_save_file/i18n/de.po +++ b/account_bank_statement_import_save_file/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 # Udo Bremer , 2017 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-08-12 00:39+0000\n" "Last-Translator: Udo Bremer , 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" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/es.po b/account_bank_statement_import_save_file/i18n/es.po index f2ba99f..1e792ee 100644 --- a/account_bank_statement_import_save_file/i18n/es.po +++ b/account_bank_statement_import_save_file/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 # enjolras , 2018 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2018-02-21 01:41+0000\n" "Last-Translator: enjolras , 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" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/fi.po b/account_bank_statement_import_save_file/i18n/fi.po index 3abb122..6b7122a 100644 --- a/account_bank_statement_import_save_file/i18n/fi.po +++ b/account_bank_statement_import_save_file/i18n/fi.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/fr.po b/account_bank_statement_import_save_file/i18n/fr.po index 8b65085..22c53a2 100644 --- a/account_bank_statement_import_save_file/i18n/fr.po +++ b/account_bank_statement_import_save_file/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/fr_CH.po b/account_bank_statement_import_save_file/i18n/fr_CH.po index 488e5d1..f075b79 100644 --- a/account_bank_statement_import_save_file/i18n/fr_CH.po +++ b/account_bank_statement_import_save_file/i18n/fr_CH.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-04-11 21:55+0000\n" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\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" -"Language: fr_CH\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/gl.po b/account_bank_statement_import_save_file/i18n/gl.po index 119c9bb..b064028 100644 --- a/account_bank_statement_import_save_file/i18n/gl.po +++ b/account_bank_statement_import_save_file/i18n/gl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/hr.po b/account_bank_statement_import_save_file/i18n/hr.po index 2921faf..223a330 100644 --- a/account_bank_statement_import_save_file/i18n/hr.po +++ b/account_bank_statement_import_save_file/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # Bole , 2018 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2018-02-21 01:41+0000\n" "Last-Translator: Bole , 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" -"Language: hr\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" +"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 diff --git a/account_bank_statement_import_save_file/i18n/it.po b/account_bank_statement_import_save_file/i18n/it.po index d8a9784..105e37b 100644 --- a/account_bank_statement_import_save_file/i18n/it.po +++ b/account_bank_statement_import_save_file/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/lt.po b/account_bank_statement_import_save_file/i18n/lt.po index d879fa2..86d5139 100644 --- a/account_bank_statement_import_save_file/i18n/lt.po +++ b/account_bank_statement_import_save_file/i18n/lt.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: lt\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" +"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 diff --git a/account_bank_statement_import_save_file/i18n/lt_LT.po b/account_bank_statement_import_save_file/i18n/lt_LT.po index 44dd135..e8f0f92 100644 --- a/account_bank_statement_import_save_file/i18n/lt_LT.po +++ b/account_bank_statement_import_save_file/i18n/lt_LT.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: msgid "" msgstr "" @@ -10,29 +10,46 @@ msgstr "" "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-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" -"Language: lt_LT\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" +"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 -#: field:account.bank.statement,import_file:0 +#: 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 -#: view:account.bank.statement:account_bank_statement_import_save_file.view_bank_statement_form +#: 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 "" diff --git a/account_bank_statement_import_save_file/i18n/nb_NO.po b/account_bank_statement_import_save_file/i18n/nb_NO.po index d10574f..fe793d6 100644 --- a/account_bank_statement_import_save_file/i18n/nb_NO.po +++ b/account_bank_statement_import_save_file/i18n/nb_NO.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-04-11 21:55+0000\n" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\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" -"Language: nb_NO\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/nl.po b/account_bank_statement_import_save_file/i18n/nl.po index d15e1a5..523f95b 100644 --- a/account_bank_statement_import_save_file/i18n/nl.po +++ b/account_bank_statement_import_save_file/i18n/nl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/pt_BR.po b/account_bank_statement_import_save_file/i18n/pt_BR.po index 5b50a66..729c056 100644 --- a/account_bank_statement_import_save_file/i18n/pt_BR.po +++ b/account_bank_statement_import_save_file/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-04-11 21:55+0000\n" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\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" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/pt_PT.po b/account_bank_statement_import_save_file/i18n/pt_PT.po index 9bdfe80..4ee7704 100644 --- a/account_bank_statement_import_save_file/i18n/pt_PT.po +++ b/account_bank_statement_import_save_file/i18n/pt_PT.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-04-11 21:55+0000\n" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\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" -"Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_save_file diff --git a/account_bank_statement_import_save_file/i18n/sl.po b/account_bank_statement_import_save_file/i18n/sl.po index 8e9e9c5..641a85f 100644 --- a/account_bank_statement_import_save_file/i18n/sl.po +++ b/account_bank_statement_import_save_file/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_save_file -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-04-11 21:55+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\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 From cd45ccee1099d922b013bf9c7213d8f2ee9e0b51 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Fri, 29 Jun 2018 15:03:10 +0200 Subject: [PATCH 30/34] FIX tests of import_save_file module to avoid conflicts with others --- .../tests/test_save_file.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py index 3a65886..b6fbd58 100644 --- a/account_bank_statement_import_save_file/tests/test_save_file.py +++ b/account_bank_statement_import_save_file/tests/test_save_file.py @@ -9,13 +9,24 @@ from odoo.tests.common import TransactionCase acc_number = 'BE1234567890' +module_name = 'account_bank_statement_import_save_file' class HelloWorldParser(models.TransientModel): + """ Fake parser that will return custom data if the file contains the + name of the module. """ _inherit = 'account.bank.statement.import' @api.model def _parse_file(self, data_file): + if module_name in data_file: + return self._mock_parse(data_file) + else: + return super(HelloWorldParser, self)._parse_file(data_file) + + def _mock_parse(self, data_file): + """ method that can be inherited in other tests to mock a statement + parser. """ return ( 'EUR', acc_number, @@ -48,11 +59,13 @@ class TestSaveFile(TransactionCase): import_wizard = self.env['account.bank.statement.import'] journal_id = self.bank_journal_euro.id import_wizard_id = import_wizard.with_context(journal_id=journal_id)\ - .create( - {'data_file': base64.b64encode(bytes('Hello world'))}) + .create({ + 'data_file': base64.b64encode(bytes( + 'account_bank_statement_import_save_file: Hello world')) + }) action = import_wizard_id.import_file() for statement in self.env['account.bank.statement'].browse( action['context']['statement_ids']): self.assertEqual( base64.b64decode(statement.import_file.datas), - 'Hello world') + 'account_bank_statement_import_save_file: Hello world') From c10c08de1f8cbdf779524f48baccf2f2f452992a Mon Sep 17 00:00:00 2001 From: oleksandrpaziuk Date: Thu, 9 Aug 2018 13:36:30 +0300 Subject: [PATCH 31/34] fix disambiguation in account_bank_statement_import_camt module name --- account_bank_statement_import_save_file/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/README.rst b/account_bank_statement_import_save_file/README.rst index 249b8e2..f8e9195 100644 --- a/account_bank_statement_import_save_file/README.rst +++ b/account_bank_statement_import_save_file/README.rst @@ -50,4 +50,4 @@ 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. \ No newline at end of file +To contribute to this module, please visit https://odoo-community.org. From 3ce503fd86d65fe898f7151c8542c9e3be0ca6ed Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 28 Feb 2019 22:50:31 +0100 Subject: [PATCH 32/34] [MIG] account_bank_statement_import_save_file from v10 to v12 --- .../__init__.py | 5 -- .../__manifest__.py | 7 +- .../hooks.py | 76 ------------------- .../models/__init__.py | 4 - .../models/account_bank_statement.py | 13 ++-- .../models/account_bank_statement_import.py | 26 +++---- .../readme/CONTRIBUTORS.rst | 3 + .../readme/DESCRIPTION.rst | 1 + .../readme/USAGE.rst | 1 + .../views/account_bank_statement.xml | 20 ++--- 10 files changed, 31 insertions(+), 125 deletions(-) delete mode 100644 account_bank_statement_import_save_file/hooks.py create mode 100644 account_bank_statement_import_save_file/readme/CONTRIBUTORS.rst create mode 100644 account_bank_statement_import_save_file/readme/DESCRIPTION.rst create mode 100644 account_bank_statement_import_save_file/readme/USAGE.rst diff --git a/account_bank_statement_import_save_file/__init__.py b/account_bank_statement_import_save_file/__init__.py index d0b326e..0650744 100644 --- a/account_bank_statement_import_save_file/__init__.py +++ b/account_bank_statement_import_save_file/__init__.py @@ -1,6 +1 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import models -from .hooks import _post_init_hook diff --git a/account_bank_statement_import_save_file/__manifest__.py b/account_bank_statement_import_save_file/__manifest__.py index 91347c2..58b38d1 100644 --- a/account_bank_statement_import_save_file/__manifest__.py +++ b/account_bank_statement_import_save_file/__manifest__.py @@ -1,10 +1,9 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). +# Copyright 2015-2019 Therp BV (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Save imported bank statements', - 'version': '10.0.1.0.0', + 'version': '12.0.1.0.0', 'author': 'Odoo Community Association (OCA), Therp BV', 'license': 'AGPL-3', 'category': 'Banking addons', @@ -15,8 +14,6 @@ 'data': [ 'views/account_bank_statement.xml', ], - 'post_init_hook': '_post_init_hook', - 'auto_install': False, 'installable': True, 'application': False, } diff --git a/account_bank_statement_import_save_file/hooks.py b/account_bank_statement_import_save_file/hooks.py deleted file mode 100644 index f2b8fd3..0000000 --- a/account_bank_statement_import_save_file/hooks.py +++ /dev/null @@ -1,76 +0,0 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - - -def _post_init_hook(cr, pool): - # if we install this module on a database with remains of account_banking, - # migrate account.banking.imported.file - cr.execute( - "select 1 from pg_catalog.pg_class c " - "join pg_catalog.pg_namespace n ON n.oid = c.relnamespace " - "where n.nspname = 'public' and " - "c.relname = 'account_banking_imported_file' and " - "c.relkind = 'r'") - if cr.fetchall(): - _post_init_hook_migrate_account_banking_imported_file(cr, pool) - - -def _post_init_hook_migrate_account_banking_imported_file(cr, pool): - # create attachments - cr.execute( - """insert into ir_attachment - ( - name, create_uid, create_date, datas_fname, description, - company_id, res_model, type, - res_id - ) - select - coalesce(file_name, ''), user_id, date, file_name, log, - company_id, 'account.bank.statement', 'binary', - ( - select id from account_bank_statement - where banking_id=f.id - limit 1 - ) - from account_banking_imported_file f - returning id""") - - attachment_ids = [attachment_id for attachment_id, in cr.fetchall()] - - if not attachment_ids: - return - - # assign respective attachment to all statements pointing to an imported - # banking file - cr.execute( - """with banking_id2attachment as ( - select distinct b.id banking_id, a.id attachment_id - from account_banking_imported_file b - join account_bank_statement s - on s.banking_id=b.id - join ir_attachment a - on a.id in %s and s.id=a.res_id - ) - update account_bank_statement s - set import_file=b2a.attachment_id - from banking_id2attachment b2a - where b2a.banking_id=s.banking_id""", - (tuple(attachment_ids),) - ) - - # now we just have to write the file's content via the orm - # (to support non-db storage) - cr.execute( - """select distinct a.id, b.file - from account_banking_imported_file b - join account_bank_statement s - on s.banking_id=b.id - join ir_attachment a - on a.id in %s and s.id=a.res_id""", - (tuple(attachment_ids),) - ) - for attachment_id, content in cr.fetchall(): - pool['ir.attachment'].sudo().write( - [attachment_id], - {'datas': str(content)}) diff --git a/account_bank_statement_import_save_file/models/__init__.py b/account_bank_statement_import_save_file/models/__init__.py index 9413d5c..b0eb256 100644 --- a/account_bank_statement_import_save_file/models/__init__.py +++ b/account_bank_statement_import_save_file/models/__init__.py @@ -1,6 +1,2 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import account_bank_statement from . import account_bank_statement_import diff --git a/account_bank_statement_import_save_file/models/account_bank_statement.py b/account_bank_statement_import_save_file/models/account_bank_statement.py index a221c13..4b94dc4 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement.py @@ -1,8 +1,7 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). +# Copyright 2015-2019 Therp BV (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import models, fields +from odoo import fields, models class AccountBankStatement(models.Model): @@ -10,9 +9,7 @@ class AccountBankStatement(models.Model): import_file = fields.Many2one( 'ir.attachment', 'Import file', readonly=True) - import_date = fields.Datetime( - related=['import_file', 'create_date'], readonly=True) - import_user = fields.Many2one( - related=['import_file', 'create_uid'], readonly=True) + import_date = fields.Datetime(related='import_file.create_date') + import_user = fields.Many2one(related='import_file.create_uid') import_log = fields.Text( - related=['import_file', 'description'], readonly=True) + related='import_file.description', string='Import Warnings') diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index e5e216a..7405c6a 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). +# Copyright 2015-2019 Therp BV (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -import base64 -from odoo import models, api +from odoo import api, models class AccountBankStatementImport(models.TransientModel): @@ -15,26 +13,24 @@ class AccountBankStatementImport(models.TransientModel): super(AccountBankStatementImport, self).import_file() statement_ids = action.get('context', {}).get('statement_ids') notifications = action.get('context', {}).get('notifications') - data_file = base64.b64decode(self.data_file) 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': self.env['ir.attachment'].create( - self._create_import_file_attachment_data( - data_file, statement_ids[0], notifications, - self.filename)).id, - }) + 'import_file': attach.id}) return action @api.model - def _create_import_file_attachment_data(self, data_file, statement_id, - notifications, filename=None): + def _prepare_import_file_attachment(self, data_file, statement_id, + notifications, filename): return { - 'name': filename or '', + 'name': filename, 'res_model': 'account.bank.statement', 'res_id': statement_id, 'type': 'binary', - 'datas': base64.b64encode(data_file), - 'datas_fname': filename or '', + 'datas': data_file, + 'datas_fname': filename, 'description': '\n'.join( '%(type)s: %(message)s' % notification for notification in notifications) or False, diff --git a/account_bank_statement_import_save_file/readme/CONTRIBUTORS.rst b/account_bank_statement_import_save_file/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..a1b7115 --- /dev/null +++ b/account_bank_statement_import_save_file/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Holger Brunn +* Mourad EL HADJ MIMOUNE +* Alexis de Lattre diff --git a/account_bank_statement_import_save_file/readme/DESCRIPTION.rst b/account_bank_statement_import_save_file/readme/DESCRIPTION.rst new file mode 100644 index 0000000..7744de0 --- /dev/null +++ b/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. diff --git a/account_bank_statement_import_save_file/readme/USAGE.rst b/account_bank_statement_import_save_file/readme/USAGE.rst new file mode 100644 index 0000000..634adb1 --- /dev/null +++ b/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. diff --git a/account_bank_statement_import_save_file/views/account_bank_statement.xml b/account_bank_statement_import_save_file/views/account_bank_statement.xml index c1375ac..070a437 100644 --- a/account_bank_statement_import_save_file/views/account_bank_statement.xml +++ b/account_bank_statement_import_save_file/views/account_bank_statement.xml @@ -1,23 +1,19 @@ - + account.bank.statement - - + + - - - - - - - + + + + - - + From a8ffc72e7b0cf453a829a17afdae0c136a87c35a Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 28 Feb 2019 23:16:09 +0100 Subject: [PATCH 33/34] Fix warning Port tests to v12 and python3 --- .../models/account_bank_statement.py | 6 ++++-- .../models/account_bank_statement_import.py | 3 ++- .../tests/__init__.py | 4 ---- .../tests/test_save_file.py | 16 +++++++--------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement.py b/account_bank_statement_import_save_file/models/account_bank_statement.py index 4b94dc4..4d180d0 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement.py @@ -9,7 +9,9 @@ class AccountBankStatement(models.Model): import_file = fields.Many2one( 'ir.attachment', 'Import file', readonly=True) - import_date = fields.Datetime(related='import_file.create_date') - import_user = fields.Many2one(related='import_file.create_uid') + 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') diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 7405c6a..ca80b85 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -24,11 +24,12 @@ class AccountBankStatementImport(models.TransientModel): @api.model def _prepare_import_file_attachment(self, data_file, statement_id, notifications, filename): + if not filename: + filename = '' return { 'name': filename, 'res_model': 'account.bank.statement', 'res_id': statement_id, - 'type': 'binary', 'datas': data_file, 'datas_fname': filename, 'description': '\n'.join( diff --git a/account_bank_statement_import_save_file/tests/__init__.py b/account_bank_statement_import_save_file/tests/__init__.py index 6086380..4859e86 100644 --- a/account_bank_statement_import_save_file/tests/__init__.py +++ b/account_bank_statement_import_save_file/tests/__init__.py @@ -1,5 +1 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import test_save_file diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py index b6fbd58..41b957c 100644 --- a/account_bank_statement_import_save_file/tests/test_save_file.py +++ b/account_bank_statement_import_save_file/tests/test_save_file.py @@ -1,6 +1,6 @@ -# -*- coding: utf-8 -*- -# © 2015 Therp BV (). -# © 2017 Today Mourad EL HADJ MIMOUNE +# Copyright 2015-2019 Therp BV (). +# Copyright 2017-Today Mourad EL HADJ MIMOUNE +# # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import base64 @@ -19,7 +19,7 @@ class HelloWorldParser(models.TransientModel): @api.model def _parse_file(self, data_file): - if module_name in data_file: + if data_file == module_name.encode('utf-8'): return self._mock_parse(data_file) else: return super(HelloWorldParser, self)._parse_file(data_file) @@ -58,14 +58,12 @@ class TestSaveFile(TransactionCase): HelloWorldParser._build_model(self.registry, self.cr) import_wizard = self.env['account.bank.statement.import'] journal_id = self.bank_journal_euro.id + data_file = base64.b64encode(module_name.encode('utf-8')) import_wizard_id = import_wizard.with_context(journal_id=journal_id)\ - .create({ - 'data_file': base64.b64encode(bytes( - 'account_bank_statement_import_save_file: Hello world')) - }) + .create({'data_file': data_file, 'filename': 'test.ofx'}) action = import_wizard_id.import_file() for statement in self.env['account.bank.statement'].browse( action['context']['statement_ids']): self.assertEqual( base64.b64decode(statement.import_file.datas), - 'account_bank_statement_import_save_file: Hello world') + module_name.encode('utf-8')) From f21041e2a73a62099c70c1edfb79fd5a47865b78 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 15 May 2020 11:15:02 +0200 Subject: [PATCH 34/34] save_file: remove test Porting these tests to v12 is quite complex. I don't think it's worth have such technically complex test for so few lines of code. We could move the test in a module that implement a bank statement format. --- .../tests/__init__.py | 1 - .../tests/test_save_file.py | 69 ------------------- 2 files changed, 70 deletions(-) delete mode 100644 account_bank_statement_import_save_file/tests/__init__.py delete mode 100644 account_bank_statement_import_save_file/tests/test_save_file.py diff --git a/account_bank_statement_import_save_file/tests/__init__.py b/account_bank_statement_import_save_file/tests/__init__.py deleted file mode 100644 index 4859e86..0000000 --- a/account_bank_statement_import_save_file/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import test_save_file diff --git a/account_bank_statement_import_save_file/tests/test_save_file.py b/account_bank_statement_import_save_file/tests/test_save_file.py deleted file mode 100644 index 41b957c..0000000 --- a/account_bank_statement_import_save_file/tests/test_save_file.py +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2015-2019 Therp BV (). -# Copyright 2017-Today Mourad EL HADJ MIMOUNE -# -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -import base64 -from odoo import api, models -from odoo.tests.common import TransactionCase - - -acc_number = 'BE1234567890' -module_name = 'account_bank_statement_import_save_file' - - -class HelloWorldParser(models.TransientModel): - """ Fake parser that will return custom data if the file contains the - name of the module. """ - _inherit = 'account.bank.statement.import' - - @api.model - def _parse_file(self, data_file): - if data_file == module_name.encode('utf-8'): - return self._mock_parse(data_file) - else: - return super(HelloWorldParser, self)._parse_file(data_file) - - def _mock_parse(self, data_file): - """ method that can be inherited in other tests to mock a statement - parser. """ - return ( - 'EUR', - acc_number, - [{ - 'name': '000000123', - 'date': '2013-06-26', - 'transactions': [{ - 'name': 'KBC-INVESTERINGSKREDIET 787-5562831-01', - 'date': '2013-06-26', - 'amount': 42, - 'unique_import_id': 'hello', - }], - }], - ) - - -class TestSaveFile(TransactionCase): - def setUp(self): - super(TestSaveFile, self).setUp() - self.currency_eur_id = self.env.ref("base.EUR").id - self.bank_journal_euro = self.env['account.journal'].create( - {'name': 'Bank', - 'type': 'bank', - 'code': 'BNK_test_imp', - 'currency_id': self.currency_eur_id - }) - - def test_SaveFile(self): - HelloWorldParser._build_model(self.registry, self.cr) - import_wizard = self.env['account.bank.statement.import'] - journal_id = self.bank_journal_euro.id - data_file = base64.b64encode(module_name.encode('utf-8')) - import_wizard_id = import_wizard.with_context(journal_id=journal_id)\ - .create({'data_file': data_file, 'filename': 'test.ofx'}) - action = import_wizard_id.import_file() - for statement in self.env['account.bank.statement'].browse( - action['context']['statement_ids']): - self.assertEqual( - base64.b64decode(statement.import_file.datas), - module_name.encode('utf-8'))