[IMP] account: improved translatability
bzr revid: qdp-launchpad@openerp.com-20110223144149-xxqro7smnlbdm550
This commit is contained in:
parent
7c420c1924
commit
fb1912cea6
|
@ -810,10 +810,10 @@ class account_fiscalyear(osv.osv):
|
||||||
for fy in self.browse(cr, uid, ids, context=context):
|
for fy in self.browse(cr, uid, ids, context=context):
|
||||||
ds = datetime.strptime(fy.date_start, '%Y-%m-%d')
|
ds = datetime.strptime(fy.date_start, '%Y-%m-%d')
|
||||||
period_obj.create(cr, uid, {
|
period_obj.create(cr, uid, {
|
||||||
'name': 'Opening Period',
|
'name': _('Opening Period'),
|
||||||
'code': ds.strftime('00/%Y'),
|
'code': ds.strftime('00/%Y'),
|
||||||
'date_start': ds + relativedelta(years=-1, days=-1),
|
'date_start': ds,
|
||||||
'date_stop': ds + relativedelta(years=-1),
|
'date_stop': ds,
|
||||||
'special': True,
|
'special': True,
|
||||||
'fiscalyear_id': fy.id,
|
'fiscalyear_id': fy.id,
|
||||||
})
|
})
|
||||||
|
@ -2638,9 +2638,9 @@ class wizard_multi_charts_accounts(osv.osv_memory):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _get_default_accounts(self, cr, uid, context=None):
|
def _get_default_accounts(self, cr, uid, context=None):
|
||||||
return [{'acc_name':'Current','account_type':'bank'},
|
return [{'acc_name': _('Current'),'account_type':'bank'},
|
||||||
{'acc_name':'Deposit','account_type':'bank'},
|
{'acc_name': _('Deposit'),'account_type':'bank'},
|
||||||
{'acc_name':'Cash','account_type':'cash'}]
|
{'acc_name': _('Cash'),'account_type':'cash'}]
|
||||||
|
|
||||||
_defaults = {
|
_defaults = {
|
||||||
'company_id': lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, [uid], c)[0].company_id.id,
|
'company_id': lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, [uid], c)[0].company_id.id,
|
||||||
|
@ -3201,4 +3201,4 @@ class account_bank_accounts_wizard(osv.osv_memory):
|
||||||
|
|
||||||
account_bank_accounts_wizard()
|
account_bank_accounts_wizard()
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
Loading…
Reference in New Issue