[IMP]Account : Changes in Warning Message account_invoice, account_move_journal
bzr revid: hsa@tinyerp.com-20120711132844-zz5rzyf7wxhc12l9
This commit is contained in:
parent
3fadbdcfc0
commit
1b6ab86696
|
@ -459,7 +459,7 @@ class account_invoice(osv.osv):
|
||||||
pay_res_id = pay_line_data and pay_line_data[0].get('value_reference',False) and int(pay_line_data[0]['value_reference'].split(',')[1]) or False
|
pay_res_id = pay_line_data and pay_line_data[0].get('value_reference',False) and int(pay_line_data[0]['value_reference'].split(',')[1]) or False
|
||||||
if not rec_res_id and not pay_res_id:
|
if not rec_res_id and not pay_res_id:
|
||||||
raise osv.except_osv(_('Configuration Error !'),
|
raise osv.except_osv(_('Configuration Error !'),
|
||||||
_('Can not find a chart of accounts for this company, you should create one.'))
|
_('Cannot find a chart of accounts for this company, you should create one.'))
|
||||||
account_obj = self.pool.get('account.account')
|
account_obj = self.pool.get('account.account')
|
||||||
rec_obj_acc = account_obj.browse(cr, uid, [rec_res_id])
|
rec_obj_acc = account_obj.browse(cr, uid, [rec_res_id])
|
||||||
pay_obj_acc = account_obj.browse(cr, uid, [pay_res_id])
|
pay_obj_acc = account_obj.browse(cr, uid, [pay_res_id])
|
||||||
|
|
|
@ -60,7 +60,7 @@ class account_move_journal(osv.osv_memory):
|
||||||
if context.get('journal_type', False):
|
if context.get('journal_type', False):
|
||||||
jids = journal_pool.search(cr, uid, [('type','=', context.get('journal_type'))])
|
jids = journal_pool.search(cr, uid, [('type','=', context.get('journal_type'))])
|
||||||
if not jids:
|
if not jids:
|
||||||
raise osv.except_osv(_('Configuration Error !'), _('Can\'t find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration/Financial Accounting/Accounts/Journals.') % context.get('journal_type'))
|
raise osv.except_osv(_('Configuration Error !'), _('Cannot find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration/Journals/Journals.') % context.get('journal_type'))
|
||||||
journal_id = jids[0]
|
journal_id = jids[0]
|
||||||
|
|
||||||
return journal_id
|
return journal_id
|
||||||
|
|
Loading…
Reference in New Issue