[MERGE] OPW 585958: sale: fix usage of map_account() for advance invoice, except fposition_id param as browse_record
bzr revid: xal@openerp.com-20130227134143-hzcoen5qin2hcw0h
This commit is contained in:
commit
06cd1f368c
|
@ -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.'))
|
||||
|
|
Loading…
Reference in New Issue