odoo/odoo#197938

Created by fw-bot
Merged at 1c8f45514cfcbf4803271e96190c2dd8c4702f6d

Statuses:

label
odoo-dev:saas-18.2-17.0-l10n_hu_edi-cleanup-post-init-code-andu-416426-fw
head
36957c57abe5041ba3ca9b32dd7604ae48dfeda7
merged
8 months ago by Accounting, Antoine Dupuis (andu)
odoo/odoo
17.0 #196471
saas-17.4 #197821
18.0 #197830
saas-18.1 #197839
saas-18.2 #197938
saas-18.3
saas-18.4
19.0
master #197845

[FW][FIX] l10n_hu_edi: Cleanup post-init code

This commit comes as an apology for the horrible code I wrote in PR #166043 in order for the installation of l10n_hu_edi to not fail if some of the default Hungarian taxes (defined in l10n_hu) had been deleted.

Instead of rolling back the loading of the EDI-specific fields if some taxes don't exist, we can just load those fields on the taxes that do exist. Which is a lot cleaner and simpler. Sorry again!

task-none

Forward-Port-Of: #196471