Bugfix: 'obj_line' was not defined
bzr revid: olt@tinyerp.com-20081215155127-bmygwbngxm2tmazf
This commit is contained in:
parent
857315978a
commit
1106d052b6
|
@ -286,7 +286,7 @@ class account_move_line(osv.osv):
|
|||
if line.analytics_id:
|
||||
toremove = self.pool.get('account.analytic.line').search(cr, uid, [('move_id','=',line.id)], context=context)
|
||||
if toremove:
|
||||
obj_line.unlink(cr, uid, toremove, context=context)
|
||||
line.unlink(cr, uid, toremove, context=context)
|
||||
for line2 in line.analytics_id.account_ids:
|
||||
val = (line.credit or 0.0) - (line.debit or 0.0)
|
||||
amt=val * (line2.rate/100)
|
||||
|
|
Loading…
Reference in New Issue