From 57e93f49e503df0337393bf605de48e14d643de6 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 17 Dec 2015 15:02:57 +0100 Subject: [PATCH] [FIX] account: missing labels on some fields And reexport some missign terms --- addons/account/i18n/account.pot | 51 +++++++++---------- .../account/models/account_bank_statement.py | 8 +-- addons/account/models/account_move.py | 2 +- addons/account/models/partner.py | 2 +- 4 files changed, 29 insertions(+), 34 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index fcae780df04..3e4a3e4f61e 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -4,10 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-18 08:05+0000\n" -"PO-Revision-Date: 2015-11-18 08:05+0000\n" +"POT-Creation-Date: 2015-12-17 14:09+0000\n" +"PO-Revision-Date: 2015-12-17 14:09+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -18,7 +18,7 @@ msgstr "" #. module: account #: model:mail.template,body_html:account.email_template_edi_invoice msgid "\n" -"
\n" +"
\n" "

Hello ${object.partner_id.name},

\n" "

A new invoice is available for you:

\n" " \n" @@ -2101,19 +2101,14 @@ msgstr "" msgid "Cashbox Lines" msgstr "" -#. module: account -#: model:ir.model.fields,field_description:account.field_account_bank_statement_cashbox_end_id -msgid "Cashbox end id" -msgstr "" - #. module: account #: model:ir.model.fields,field_description:account.field_account_cashbox_line_cashbox_id -msgid "Cashbox id" +msgid "Cashbox" msgstr "" #. module: account -#: model:ir.model.fields,field_description:account.field_account_bank_statement_cashbox_start_id -msgid "Cashbox start id" +#: model:ir.model.fields,field_description:account.field_account_bank_statement_cashbox_cashbox_lines_ids +msgid "Cashbox Lines" msgstr "" #. module: account @@ -2806,7 +2801,9 @@ msgstr "" #. module: account #: model:ir.model.fields,field_description:account.field_account_abstract_payment_currency_id +#: model:ir.model.fields,field_description:account.field_account_bank_statement_currency_id #: model:ir.model.fields,field_description:account.field_account_bank_statement_line_currency_id +#: model:ir.model.fields,field_description:account.field_account_bank_statement_line_journal_currency_id #: model:ir.model.fields,field_description:account.field_account_chart_template_currency_id #: model:ir.model.fields,field_description:account.field_account_invoice_company_currency_id #: model:ir.model.fields,field_description:account.field_account_invoice_currency_id @@ -2815,6 +2812,7 @@ msgstr "" #: model:ir.model.fields,field_description:account.field_account_invoice_report_currency_id #: model:ir.model.fields,field_description:account.field_account_invoice_tax_currency_id #: model:ir.model.fields,field_description:account.field_account_journal_currency_id +#: model:ir.model.fields,field_description:account.field_account_move_currency_id #: model:ir.model.fields,field_description:account.field_account_move_line_company_currency_id #: model:ir.model.fields,field_description:account.field_account_move_line_currency_id #: model:ir.model.fields,field_description:account.field_account_partial_reconcile_company_currency_id @@ -2822,6 +2820,7 @@ msgstr "" #: model:ir.model.fields,field_description:account.field_account_partial_reconcile_currency_id #: model:ir.model.fields,field_description:account.field_account_payment_currency_id #: model:ir.model.fields,field_description:account.field_account_register_payments_currency_id +#: model:ir.model.fields,field_description:account.field_res_partner_currency_id #: model:ir.model.fields,field_description:account.field_wizard_multi_charts_accounts_currency_id #: model:ir.ui.view,arch_db:account.report_generalledger #: model:ir.ui.view,arch_db:account.view_account_payment_search @@ -2840,20 +2839,12 @@ msgid "Currency as per company's country." msgstr "" #. module: account -#: code:addons/account/models/account_move.py:1168 -#: code:addons/account/models/account_move.py:1176 +#: code:addons/account/models/account_move.py:1180 +#: code:addons/account/models/account_move.py:1188 #, python-format msgid "Currency exchange rate difference" msgstr "" -#. module: account -#: model:ir.model.fields,field_description:account.field_account_bank_statement_currency_id -#: model:ir.model.fields,field_description:account.field_account_bank_statement_line_journal_currency_id -#: model:ir.model.fields,field_description:account.field_account_move_currency_id -#: model:ir.model.fields,field_description:account.field_res_partner_currency_id -msgid "Currency id" -msgstr "" - #. module: account #: model:account.account.type,name:account.data_account_type_current_assets #: model:ir.ui.view,arch_db:account.view_account_form @@ -3465,6 +3456,11 @@ msgstr "" msgid "Ending Balance" msgstr "" +#. module: account +#: model:ir.model.fields,field_description:account.field_account_bank_statement_cashbox_end_id +msgid "Ending Cashbox" +msgstr "" + #. module: account #: model:ir.ui.view,arch_db:account.account_planner msgid "Enjoy your Odoo experience," @@ -5248,12 +5244,6 @@ msgstr "" msgid "Messages" msgstr "" -#. module: account -#: model:ir.model.fields,help:account.field_account_bank_statement_message_ids -#: model:ir.model.fields,help:account.field_account_invoice_message_ids -msgid "Messages and communication history" -msgstr "" - #. module: account #: selection:account.journal,type:0 #: model:ir.ui.view,arch_db:account.view_account_journal_form @@ -7209,6 +7199,11 @@ msgstr "" msgid "Starting Balance" msgstr "" +#. module: account +#: model:ir.model.fields,field_description:account.field_account_bank_statement_cashbox_start_id +msgid "Starting Cashbox" +msgstr "" + #. module: account #: model:ir.ui.view,arch_db:account.view_account_payment_search msgid "State" diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index 09a2260f228..260a180f497 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -26,7 +26,7 @@ class AccountCashboxLine(models.Model): coin_value = fields.Float(string='Coin/Bill Value', required=True, digits=0) number = fields.Integer(string='Number of Coins/Bills', help='Opening Unit Numbers') subtotal = fields.Float(compute='_sub_total', string='Subtotal', digits=0, readonly=True) - cashbox_id = fields.Many2one('account.bank.statement.cashbox') + cashbox_id = fields.Many2one('account.bank.statement.cashbox', string="Cashbox") class AccountBankStmtCashWizard(models.Model): @@ -132,7 +132,7 @@ class AccountBankStatement(models.Model): balance_start = fields.Monetary(string='Starting Balance', states={'confirm': [('readonly', True)]}, default=_default_opening_balance) balance_end_real = fields.Monetary('Ending Balance', states={'confirm': [('readonly', True)]}) state = fields.Selection([('open', 'New'), ('confirm', 'Validated')], string='Status', required=True, readonly=True, copy=False, default='open') - currency_id = fields.Many2one('res.currency', compute='_compute_currency', oldname='currency') + currency_id = fields.Many2one('res.currency', compute='_compute_currency', oldname='currency', string="Currency") journal_id = fields.Many2one('account.journal', string='Journal', required=True, states={'confirm': [('readonly', True)]}, default=_default_journal) journal_type = fields.Selection(related='journal_id.type', help="Technical field used for usability purposes") company_id = fields.Many2one('res.company', related='journal_id.company_id', string='Company', store=True, readonly=True, @@ -146,8 +146,8 @@ class AccountBankStatement(models.Model): move_line_ids = fields.One2many('account.move.line', 'statement_id', string='Entry lines', states={'confirm': [('readonly', True)]}) all_lines_reconciled = fields.Boolean(compute='_check_lines_reconciled') user_id = fields.Many2one('res.users', string='Responsible', required=False, default=lambda self: self.env.user) - cashbox_start_id = fields.Many2one('account.bank.statement.cashbox') - cashbox_end_id = fields.Many2one('account.bank.statement.cashbox') + cashbox_start_id = fields.Many2one('account.bank.statement.cashbox', string="Starting Cashbox") + cashbox_end_id = fields.Many2one('account.bank.statement.cashbox', string="Ending Cashbox") @api.onchange('journal_id') diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 870c9cd6195..a2bad9d28c1 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -73,7 +73,7 @@ class AccountMove(models.Model): ref = fields.Char(string='Reference', copy=False) date = fields.Date(required=True, states={'posted': [('readonly', True)]}, index=True, default=fields.Date.context_today) journal_id = fields.Many2one('account.journal', string='Journal', required=True, states={'posted': [('readonly', True)]}, default=_get_default_journal) - currency_id = fields.Many2one('res.currency', compute='_compute_currency', store=True) + currency_id = fields.Many2one('res.currency', compute='_compute_currency', store=True, string="Currency") rate_diff_partial_rec_id = fields.Many2one('account.partial.reconcile', string='Exchange Rate Entry of', help="Technical field used to keep track of the origin of journal entries created in case of fluctuation of the currency exchange rate. This is needed when cancelling the source: it will post the inverse journal entry to cancel that part too.") state = fields.Selection([('draft', 'Unposted'), ('posted', 'Posted')], string='Status', required=True, readonly=True, copy=False, default='draft', diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index ee466397a0d..b93308b00f8 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -405,7 +405,7 @@ class ResPartner(models.Model): total_invoiced = fields.Monetary(compute='_invoice_total', string="Total Invoiced", groups='account.group_account_invoice') currency_id = fields.Many2one('res.currency', compute='_get_company_currency', readonly=True, - help='Utility field to express amount currency') + string="Currency", help='Utility field to express amount currency') contracts_count = fields.Integer(compute='_journal_item_count', string="Contracts", type='integer') journal_item_count = fields.Integer(compute='_journal_item_count', string="Journal Items", type="integer")