[IMP] l10n_multilang: removed flag translate=True on account.account as we want to...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 6 Dec 2011 11:21:43 +0000 (12:21 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 6 Dec 2011 11:21:43 +0000 (12:21 +0100)
bzr revid: qdp-launchpad@openerp.com-20111206112143-9jg4s33xd8n3c6ll

addons/l10n_multilang/account.py

index f4d2c1b..162abb0 100644 (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()