[IMP]:use the translte method instead of undescore sign
bzr revid: ksa@tinyerp.com-20130419131747-3vwx4a9rcosryrwb
This commit is contained in:
parent
8f72e4e308
commit
8b37e0a7bb
|
@ -22,7 +22,6 @@
|
|||
import time
|
||||
from openerp.report import report_sxw
|
||||
from common_report_header import common_report_header
|
||||
from openerp.tools.translate import _
|
||||
|
||||
class aged_trial_report(report_sxw.rml_parse, common_report_header):
|
||||
|
||||
|
@ -368,11 +367,11 @@ class aged_trial_report(report_sxw.rml_parse, common_report_header):
|
|||
|
||||
def _get_partners(self,data):
|
||||
if data['form']['result_selection'] == 'customer':
|
||||
return _('Receivable Accounts')
|
||||
return self._translate('Receivable Accounts')
|
||||
elif data['form']['result_selection'] == 'supplier':
|
||||
return _('Payable Accounts')
|
||||
return self._translate('Payable Accounts')
|
||||
elif data['form']['result_selection'] == 'customer_supplier':
|
||||
return _('Receivable and Payable Accounts')
|
||||
return self._translate('Receivable and Payable Accounts')
|
||||
return ''
|
||||
|
||||
report_sxw.report_sxw('report.account.aged_trial_balance', 'res.partner',
|
||||
|
|
Loading…
Reference in New Issue