Skip to content
Snippets Groups Projects
Commit 6579fc2d authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] account: fiscal position computation precedence

Zip range and state filtering were added at
377a6eca, but the
precedence between country, group, vat_required,
and not required were not correct.

This commit fixes the precedence as follows and adds
the corresponding tests:

 0. Explict position on partner
 1. Direct match on all criterions
 2. Match on country+zip before country+state
 3. Match on country before country group
 4. Match on `vat_required` criterion on all
    the above before trying them all again without
parent 3d688e95
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment