[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
This commit is contained in:
Quentin (OpenERP) 2011-12-06 12:21:43 +01:00
parent f19e893877
commit aa68947a46
1 changed files with 4 additions and 10 deletions

View File

@ -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()