[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:
parent
fa3ace7f99
commit
386f76eb46
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue