Files
odoo_source/addons/l10n_ch
Claire Bretton (clbr) eab47ccc5d [FIX] account,point_of_sale,l10n_{ch,id}: fix fiscal country compute and related tests
The fiscal country was changed each time the user modified his
company's country. This caused problems (in particular at onboarding)
because it was not done transparently for the user and possibly
overrided his setup.

After this commit, the fiscal country will behave like this:
- When we install Invoicing/Accounting, it is set by default to company's country
- When we install CoA, it is set to the CoA's country, if there is one (override above setting)
- It is **no longer automatically changed** when the company's country changes.

Fixes related tests that depended on the previous way of compute fiscal country.

closes odoo/odoo#116322

Task: 3221792
X-original-commit: ac1f2a5774a2f8d03003b481829f6e183ab0b713
Related: odoo/enterprise#38623
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Claire Bretton <clbr@odoo.com>
2023-03-27 10:40:22 +02:00
..