From aa68947a467b4ba78f01543c6b4e1be41f7922de Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 6 Dec 2011 12:21:43 +0100 Subject: [PATCH] [IMP] l10n_multilang: removed flag translate=True on account.account as we want to have only one COA per company (and not translated) + added spoken_languages field on chart templates to depicts what can be the translations loaded bzr revid: qdp-launchpad@openerp.com-20111206112143-9jg4s33xd8n3c6ll --- addons/l10n_multilang/account.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/addons/l10n_multilang/account.py b/addons/l10n_multilang/account.py index f4d2c1bb78d..162abb0447f 100644 --- a/addons/l10n_multilang/account.py +++ b/addons/l10n_multilang/account.py @@ -24,6 +24,8 @@ from osv import fields, osv from tools.translate import _ +#in this file, we mostly add the tag translate=True on existing fields that we now want to be translated + class account_account_template(osv.osv): _inherit = 'account.account.template' _columns = { @@ -31,15 +33,6 @@ class account_account_template(osv.osv): } account_account_template() - -class account_account(osv.osv): - _inherit = 'account.account' - _columns = { - 'name': fields.char('Name', size=128, required=True, select=True, translate=True), - } -account_account() - - class account_tax(osv.osv): _inherit = 'account.tax' _columns = { @@ -68,6 +61,7 @@ class account_chart_template(osv.osv): _inherit = 'account.chart.template' _columns={ 'name': fields.char('Name', size=64, required=True, translate=True), + 'spoken_languages': fields.char('Spoken Languages', size=64, help="State here the languages for which the translations of templates could be loaded at the time of installation of this localization module and copied in the final object when generating them from templates. You must provide the language codes separated by ';'"), } _order = 'name' account_chart_template() @@ -93,7 +87,7 @@ class account_journal(osv.osv): _inherit = 'account.journal' _columns = { 'name': fields.char('Journal Name', size=64, required=True, translate=True), - } + } account_journal()