[FIX] account: get_fiscal_position is expected to return an id

Not a browse record.
This is a regression introduced by the revision 5fcf0f5a6f

opw-643188
fixes #7231
This commit is contained in:
Denis Ledoux 2015-06-23 16:28:31 +02:00
parent fa3ace7f99
commit 386f76eb46
1 changed files with 1 additions and 1 deletions

View File

@ -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: