summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-01-15 14:16:09 +0100
committerOlivier Dony <odo@openerp.com>2016-01-15 16:44:25 +0100
commit3c12a59bff9af51399e5ce63150c6c97d48ac914 (patch)
treeacbe09f0164e8eeeec23ef79efef220505bfae5d /addons/web/static/src/js/framework/data.js
parentddd3e08fbcb54e971537f9f20668c00dbe36ab37 (diff)
[FIX] account: _get_fpos_by_region should return wildcard position as fallback
Simplify the API and make it possible to detect fiscal positions based only on geo information, without having to call `get_fiscal_position()` which requires a specific partner record. This commit simply moves the logic related to the global 'world' fiscal position fallback (no country, no country group) into the low-level method `_get_fpos_by_region()`, so that callers do not have to do it themselves.
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions