summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-06-23 16:28:31 +0200
committerDenis Ledoux <dle@odoo.com>2015-06-23 16:29:55 +0200
commit386f76eb46deee167234edfb1f9b1d3bb6b86e5f (patch)
tree0e07eb82ce7965afe9608dab2f440bbad48bdaea
parentfa3ace7f99321aeec6c9804a353be9ae7a96a8fe (diff)
[FIX] account: get_fiscal_position is expected to return an id
Not a browse record. This is a regression introduced by the revision 5fcf0f5a6fbefd0d33bd19e7649eecf7bd535f27 opw-643188 fixes #7231
-rw-r--r--addons/account/partner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/partner.py b/addons/account/partner.py
index 0517912ad74..f60b37fe862 100644
--- a/addons/account/partner.py
+++ b/addons/account/partner.py
@@ -121,7 +121,7 @@ class account_fiscal_position(osv.osv):
# partner manually set fiscal position always win
if delivery.property_account_position or partner.property_account_position:
- return delivery.property_account_position or partner.property_account_position
+ return delivery.property_account_position.id or partner.property_account_position.id
domains = [[('auto_apply', '=', True), ('vat_required', '=', partner.vat_subjected)]]
if partner.vat_subjected: