[REF] account: fix buildbot warning

bzr revid: ara@tinyerp.com-20110127063226-2bvb74jfkjql3d29
This commit is contained in:
ARA (OpenERP) 2011-01-27 12:02:26 +05:30
parent 2add57ba57
commit 8bb8e9f2c3
4 changed files with 2 additions and 4 deletions

View File

@ -207,7 +207,6 @@ class account_balance_landscape(report_sxw.rml_parse):
return cmp(x.code, y.code)
for n in range(0,len(accounts)):
accounts[n].sort(cmp_code)
common={}
merged_accounts=zip(*accounts)
for entry in merged_accounts:

View File

@ -296,7 +296,6 @@ class partner_balance(report_sxw.rml_parse, common_report_header):
def _get_partners(self):
cr, uid = self.cr, self.uid
context = self.localcontext # all of it?
if self.result_selection == 'customer':
return _('Receivable Accounts')

View File

@ -36,7 +36,7 @@ class account_state_open(osv.osv_memory):
if data_inv.reconciled:
raise osv.except_osv(_('Warning'), _('Invoice is already reconciled'))
wf_service = netsvc.LocalService("workflow")
res = wf_service.trg_validate(uid, 'account.invoice', context['active_ids'][0], 'open_test', cr)
wf_service.trg_validate(uid, 'account.invoice', context['active_ids'][0], 'open_test', cr)
return {'type': 'ir.actions.act_window_close'}
account_state_open()

View File

@ -107,7 +107,7 @@ class account_use_model(osv.osv_memory):
})
c = context.copy()
c.update({'journal_id': model.journal_id.id,'period_id': period_id})
id_line = account_move_line_obj.create(cr, uid, val, context=c)
account_move_line_obj.create(cr, uid, val, context=c)
context.update({'move_ids':move_ids})
model_data_ids = mod_obj.search(cr, uid,[('model','=','ir.ui.view'),('name','=','view_move_form')], context=context)