Files
Thomas Becquevort (thbe) bd87344860 [FIX] l10n_sg: Singapore Tax ID label always applied
Description of the issue/feature this PR addresses:

When installing the Singaporean loca, the Tax ID label is renamed to
"GST No.". This is  global change meaning the label is changed for Singaporean
companies but also for any other company. This should not happen as the rename
should only be applied when using a Singaporean company and viewing any
company.

For example :
- Belgian company viewing Belgian company : GST No.
- Belgian company viewing Singaporean company : GST No.
- Singaporean company viewing Belgian company : GST No.
- Singaporean company viewing Singaporean company : GST No.

Desired behavior after the PR is merged:

This commit changes the way the Tax ID label is changed. The label is not
changed upon intallation of the Singaporean loca but is actually adapted on
each opening of a company view so that the tax id label of the company
being USED is applied instead of the default one.

For example :
- Belgian company viewing Belgian company : Tax ID
- Belgian company viewing Singaporean company : Tax ID
- Singaporean company viewing Belgian company : GST No.
- Singaporean company viewing Singaporean company : GST No.

task-3530802

closes odoo/odoo#146020

X-original-commit: e4594310d3dd06b2e2bc047317c90bffe30a57f0
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Thomas Becquevort (thbe) <thbe@odoo.com>
2023-12-13 00:32:24 +00:00
..