From b621b0d86fb33c0225f051948b083a75f8ef8cc1 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Wed, 15 Sep 2010 21:19:04 +0530 Subject: [PATCH] [FIX]: remove warning "WARNING:warning:Deprecated, use compute_all(...)['taxes'] instead of compute(...) to manage prices with tax included" bzr revid: mga@tinyerp.com-20100915154904-supbzcdc15qgx0od --- addons/account/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 7ddd4ad42f0..990dd277d65 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -1202,7 +1202,7 @@ class account_move_line(osv.osv): tax_sign = 'tax_sign' tmp_cnt = 0 - for tax in tax_obj.compute(cr, uid, [tax_id], total, 1.00): + for tax in tax_obj.compute_all(cr, uid, [tax_id], total, 1.00).get('taxes'): #create the base movement if tmp_cnt == 0: if tax[base_code]: