From 20e10bc35e53d6c313282196cb0a3eaf7ffe01ca Mon Sep 17 00:00:00 2001 From: Hardik Ansodariya Date: Tue, 12 Feb 2013 12:31:36 +0530 Subject: [PATCH] [FIX] sale_make_invoice_addvance: passed browse record instead id of fiscal postion(Maintenance case: 585958) bzr revid: han@tinyerp.com-20130212070136-fbhyi4uv9vwdjee6 --- addons/sale/wizard/sale_make_invoice_advance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index 98d32fa0e80..c35b1a78635 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -86,7 +86,7 @@ class sale_advance_payment_inv(osv.osv_memory): prop = ir_property_obj.get(cr, uid, 'property_account_income_categ', 'product.category', context=context) prop_id = prop and prop.id or False - account_id = fiscal_obj.map_account(cr, uid, sale.fiscal_position.id or False, prop_id) + account_id = fiscal_obj.map_account(cr, uid, sale.fiscal_position or False, prop_id) if not account_id: raise osv.except_osv(_('Configuration Error!'), _('There is no income account defined as global property.'))