[FIX] Account_payment
bzr revid: mra@mra-laptop-20100819054252-4uo3nhwktm5qowmj
This commit is contained in:
parent
10034b4ed1
commit
7a830f9004
|
@ -38,15 +38,15 @@ class account_payment_make_payment(osv.osv_memory):
|
|||
obj_payment_order.set_done(cr,uid,context['active_id'],context)
|
||||
return {}
|
||||
|
||||
gw= obj_payment_order.get_wizard(t)
|
||||
gw = obj_payment_order.get_wizard(t)
|
||||
if not gw:
|
||||
obj_payment_order.set_done(cr,uid,context['active_id'],context)
|
||||
return {}
|
||||
|
||||
module, wizard= gw
|
||||
result = mod_obj._get_id(cr, uid, module, wizard)
|
||||
id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id']
|
||||
return act_obj.read(cr, uid, [id])[0]
|
||||
result = obj_model._get_id(cr, uid, module, wizard)
|
||||
id = obj_model.read(cr, uid, [result], ['res_id'])[0]['res_id']
|
||||
return obj_act.read(cr, uid, [id])[0]
|
||||
#result['context'] = str({'fiscalyear': data['form']['fiscalyear']})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue