From 5cbdeff9dd1b2a9df7f0b7809cdaef98554e5dbe Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 10 Sep 2014 11:48:07 +0200 Subject: [PATCH] [FIX] bank_statement_instant_voucher: Problems in views and some other enhancements --- bank_statement_instant_voucher/__init__.py | 3 +- bank_statement_instant_voucher/__openerp__.py | 5 +- .../i18n/bank_statement_instant_voucher.pot | 178 ++++++++++++++++++ .../model/__init__.py | 5 +- .../view/account_bank_statement_line.xml | 4 +- .../view/account_voucher_instant.xml | 63 +++---- 6 files changed, 219 insertions(+), 39 deletions(-) create mode 100644 bank_statement_instant_voucher/i18n/bank_statement_instant_voucher.pot diff --git a/bank_statement_instant_voucher/__init__.py b/bank_statement_instant_voucher/__init__.py index 16e8b082f..f3fc39f79 100644 --- a/bank_statement_instant_voucher/__init__.py +++ b/bank_statement_instant_voucher/__init__.py @@ -1 +1,2 @@ -import model +# -*- coding: utf-8 -*- +from . import model diff --git a/bank_statement_instant_voucher/__openerp__.py b/bank_statement_instant_voucher/__openerp__.py index 5a811d541..15e7f22dd 100644 --- a/bank_statement_instant_voucher/__openerp__.py +++ b/bank_statement_instant_voucher/__openerp__.py @@ -46,11 +46,12 @@ supported. """, 'website': 'http://therp.nl', 'images': [], - 'depends': ['account_voucher'], + 'depends': [ + 'account_voucher', + ], 'data': [ 'view/account_voucher_instant.xml', 'view/account_bank_statement_line.xml', ], "license": 'AGPL-3', } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/bank_statement_instant_voucher/i18n/bank_statement_instant_voucher.pot b/bank_statement_instant_voucher/i18n/bank_statement_instant_voucher.pot new file mode 100644 index 000000000..be3c77290 --- /dev/null +++ b/bank_statement_instant_voucher/i18n/bank_statement_instant_voucher.pot @@ -0,0 +1,178 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * bank_statement_instant_voucher +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-09-10 09:46+0000\n" +"PO-Revision-Date: 2014-09-10 09:46+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,balance:0 +msgid "Balance" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:_description:0 +#: model:ir.model,name:bank_statement_instant_voucher.model_account_bank_statement_line +#, python-format +msgid "Bank Statement Line" +msgstr "" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,statement_line_id:0 +msgid "Bank statement line" +msgstr "" + +#. module: bank_statement_instant_voucher +#: view:account.voucher.instant:0 +msgid "Cancel" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:167 +#, python-format +msgid "Cannot determine statement line" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:258 +#, python-format +msgid "Cannot match a confirmed statement line" +msgstr "" + +#. module: bank_statement_instant_voucher +#: view:account.voucher.instant:0 +msgid "Confirm" +msgstr "" + +#. module: bank_statement_instant_voucher +#: view:account.bank.statement:0 +#: view:account.voucher.instant:0 +#: model:ir.actions.act_window,name:bank_statement_instant_voucher.act_instant_voucher +msgid "Create matching voucher" +msgstr "" + +#. module: bank_statement_instant_voucher +#: view:account.voucher.instant:0 +msgid "Create voucher" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:225 +#, python-format +msgid "Currency on the bank statement line needs to be the same as on the voucher. Currency conversion is not yet supported." +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:79 +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:166 +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:224 +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:234 +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:242 +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:247 +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:257 +#, python-format +msgid "Error" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:_description:0 +#: model:ir.model,name:bank_statement_instant_voucher.model_account_voucher_instant +#, python-format +msgid "Instant Voucher" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:80 +#, python-format +msgid "No %s journal defined" +msgstr "" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,partner_id:0 +msgid "Partner" +msgstr "" + +#. module: bank_statement_instant_voucher +#: selection:account.voucher.instant,type:0 +msgid "Purchase" +msgstr "" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,ref:0 +msgid "Reference" +msgstr "" + +#. module: bank_statement_instant_voucher +#: selection:account.voucher.instant,type:0 +msgid "Sale" +msgstr "" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,state:0 +msgid "State" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:248 +#, python-format +msgid "The amount on the bank statement line needs to be the same as on the voucher. Write-off is not yet supported." +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:235 +#, python-format +msgid "The voucher could not be posted." +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:243 +#, python-format +msgid "The voucher's move line could not be posted." +msgstr "" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,voucher_id:0 +msgid "Voucher" +msgstr "" + +#. module: bank_statement_instant_voucher +#: code:addons/bank_statement_instant_voucher/model/account_voucher_instant.py:95 +#, python-format +msgid "Voucher for statement line %s.%s" +msgstr "" + +#. module: bank_statement_instant_voucher +#: field:account.voucher.instant,type:0 +msgid "Voucher type" +msgstr "" + +#. module: bank_statement_instant_voucher +#: selection:account.voucher.instant,state:0 +msgid "confirm" +msgstr "" + +#. module: bank_statement_instant_voucher +#: selection:account.voucher.instant,state:0 +msgid "init" +msgstr "" + +#. module: bank_statement_instant_voucher +#: view:account.voucher.instant:0 +msgid "or" +msgstr "" + +#. module: bank_statement_instant_voucher +#: selection:account.voucher.instant,state:0 +msgid "ready" +msgstr "" + diff --git a/bank_statement_instant_voucher/model/__init__.py b/bank_statement_instant_voucher/model/__init__.py index bb3faa358..7ace57607 100644 --- a/bank_statement_instant_voucher/model/__init__.py +++ b/bank_statement_instant_voucher/model/__init__.py @@ -1,2 +1,3 @@ -import account_voucher_instant -import account_bank_statement_line +# -*- encoding: utf-8 -*- +from . import account_voucher_instant +from . import account_bank_statement_line diff --git a/bank_statement_instant_voucher/view/account_bank_statement_line.xml b/bank_statement_instant_voucher/view/account_bank_statement_line.xml index 15660e9aa..4ca88a829 100644 --- a/bank_statement_instant_voucher/view/account_bank_statement_line.xml +++ b/bank_statement_instant_voucher/view/account_bank_statement_line.xml @@ -3,11 +3,11 @@ Add instant voucher button to bank statement line on statement form - + account.bank.statement -