diff options
| author | Xavier ALT <xal@openerp.com> | 2013-02-27 14:41:43 +0100 |
|---|---|---|
| committer | Xavier ALT <xal@openerp.com> | 2013-02-27 14:41:43 +0100 |
| commit | 06cd1f368c08086fa664f3f8115fa5a331b6c90d (patch) | |
| tree | 77b0edfd75049fbc53e79f7290e0fca6422c1f78 /addons | |
| parent | b4949e3ca4d5480e3185401c2153c42d16521032 (diff) | |
| parent | 20e10bc35e53d6c313282196cb0a3eaf7ffe01ca (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/sale/wizard/sale_make_invoice_advance.py | 2 |
1 files changed, 1 insertions, 1 deletions
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.')) |
