Skip to content

Conversation

@antoine162
Copy link
Contributor

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

This commit comes as an apology for the horrible code I wrote in
PR odoo#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
@robodoo
Copy link
Contributor

robodoo commented Feb 4, 2025

Pull request status dashboard

@C3POdoo C3POdoo added the RD research & development, internal work label Feb 4, 2025
@antoine162 antoine162 requested review from a team and RicGR98 and removed request for a team February 5, 2025 07:55
Copy link
Contributor

@RicGR98 RicGR98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks :)

@robodoo r+

robodoo pushed a commit that referenced this pull request Feb 14, 2025
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

closes #196471

Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
@robodoo robodoo closed this Feb 14, 2025
@fw-bot fw-bot deleted the 17.0-l10n_hu_edi-cleanup-post-init-code-andu branch February 28, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants