[FIX] account: move translatable tag
The field note on account.fiscal.position and account.fiscal.position.template should not be translatable in classic modules. The l10n_multilang module is intendend to make chart of accounts multilang and is the place to set translate=True
This commit is contained in:
parent
100eba8eaf
commit
b38a129d71
|
@ -2935,7 +2935,7 @@ class account_fiscal_position_template(osv.osv):
|
|||
'chart_template_id': fields.many2one('account.chart.template', 'Chart Template', required=True),
|
||||
'account_ids': fields.one2many('account.fiscal.position.account.template', 'position_id', 'Account Mapping'),
|
||||
'tax_ids': fields.one2many('account.fiscal.position.tax.template', 'position_id', 'Tax Mapping'),
|
||||
'note': fields.text('Notes', translate=True),
|
||||
'note': fields.text('Notes'),
|
||||
}
|
||||
|
||||
def generate_fiscal_position(self, cr, uid, chart_temp_id, tax_template_ref, acc_template_ref, company_id, context=None):
|
||||
|
|
|
@ -33,7 +33,7 @@ class account_fiscal_position(osv.osv):
|
|||
'company_id': fields.many2one('res.company', 'Company'),
|
||||
'account_ids': fields.one2many('account.fiscal.position.account', 'position_id', 'Account Mapping'),
|
||||
'tax_ids': fields.one2many('account.fiscal.position.tax', 'position_id', 'Tax Mapping'),
|
||||
'note': fields.text('Notes', translate=True),
|
||||
'note': fields.text('Notes'),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
|
|
@ -78,6 +78,7 @@ class account_fiscal_position(osv.osv):
|
|||
_inherit = 'account.fiscal.position'
|
||||
_columns = {
|
||||
'name': fields.char('Fiscal Position', size=64, required=True, translate=True),
|
||||
'note': fields.text('Notes', translate=True),
|
||||
}
|
||||
account_fiscal_position()
|
||||
|
||||
|
@ -86,6 +87,7 @@ class account_fiscal_position_template(osv.osv):
|
|||
_inherit = 'account.fiscal.position.template'
|
||||
_columns = {
|
||||
'name': fields.char('Fiscal Position Template', size=64, required=True, translate=True),
|
||||
'note': fields.text('Notes', translate=True),
|
||||
}
|
||||
account_fiscal_position_template()
|
||||
|
||||
|
|
Loading…
Reference in New Issue