summaryrefslogtreecommitdiff
path: root/addons/account_tax_python
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-08-22 14:29:00 +0000
committerNicolas Lempereur <nle@odoo.com>2019-08-27 11:19:10 +0000
commitc346e7af3314ce504fe3add9e9f6a4839bcad64a (patch)
tree33563c50dac38e90c08dc690c0910f33544d7b98 /addons/account_tax_python
parent40487aca5cc52d62ad3fd08b9494f190e4413d8c (diff)
[FIX] l10n_*: translate COA on load without install
When a COA is installed being loaded for current company, the translations of taxes, account name, ... (in l10n_be, l10n_ca, l10n_ch, l10n_sa) are copied from the templates to the accounting records. This is done in `post_init_hook` which is correct since then translations are available to be copied. But when an accounting localization is already installed and we set it to a company, the translations are not copied. eg. install l10n_be for company1: accounts name are translated in french and dutch, set company2 to belgian accounting: only original language is available. With this changeset, the translation copy is also performed when an accounting localization is loaded for a company after it has been installed. note: if we install language for first times after setting accounting localizations, chart of account are translated in that language. opw-2047013 closes #35985 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/account_tax_python')
0 files changed, 0 insertions, 0 deletions