Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] l10n_de_skr03: fiscal positions with VAT id should be vat_required #156934

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 7, 2024

Steps to reproduce:

  • Install the l10n_de package
  • Create and select a german company
  • Accounting > Configuration > Settings > Fiscal localization
  • Set: Deutscher Kontenplan SKR03 for the fiscal localization
  • Accounting > Configuration > Accounting > Fiscal Positions
  • Click on "Geschäftspartner EU (mit USt-ID)" (this fiscal position translates to "Business partner EU (with VAT ID)".

Issue: The vat_required field of this fiscal position is False but sould be True as the fiscal position is "(with VAT id)".

Cause of the issue:

The vat_required field is a Boolean of the account.fiscal.position model without defaut value nor compute method. As such it is interpreted as "False" when unset (just like any unset python boolean). Since the vat_required field is not set in the data file of the l10n_de_skr03 localization for the "Geschäftspartner EU (mit USt-ID)" fiscal position, it will be interpreted as False.

Fix:

We update the data file of the fiscal localization to the expected value

opw-3721912

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #156652
Forward-Port-Of: #156444

@robodoo
Copy link
Contributor

robodoo commented Mar 7, 2024

Pull request status dashboard.

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 7, 2024

@lase-odoo @FlorianGilbert cherrypicking of pull request #156444 failed.

stdout:

CONFLICT (modify/delete): addons/l10n_de_skr03/data/account_tax_fiscal_position_data.xml deleted in HEAD and modified in df0291150d2d ([FIX] l10n_de_skr03: fiscal positions with VAT id should be vat_required).  Version df0291150d2d ([FIX] l10n_de_skr03: fiscal positions with VAT id should be vat_required) of addons/l10n_de_skr03/data/account_tax_fiscal_position_data.xml left in tree.

stderr:

15:47:20.340769 git.c:463               trace: built-in: git cherry-pick df0291150d2d98e74eeb9aa2dfe9b15747c03b9b
error: could not apply df0291150d2d... [FIX] l10n_de_skr03: fiscal positions with VAT id should be vat_required
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
----------
status:

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added forwardport This PR was created by @fw-bot conflict There was an error while creating this forward-port PR labels Mar 7, 2024
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 7, 2024
@lase-odoo lase-odoo force-pushed the saas-16.3-15.0-opw-3721912-german_partner_VAT_required-lase-joR4-fw branch from bed3966 to c4f0bfd Compare March 7, 2024 15:27
@lase-odoo
Copy link
Contributor

lase-odoo commented Mar 7, 2024

The conflict was caused by the fact that the data file used to be a an xml: account_tax_fiscal_position_data.xml and is now a csv file. The change on the record is the same.

Steps to reproduce:

- Install the l10n_de package
- Create and select a german company
- Accounting > Configuration > Settings > Fiscal localization
- Set: Deutscher Kontenplan SKR03 for the fiscal localization
- Accounting > Configuration > Accounting > Fiscal Positions
- Click on "Geschäftspartner EU (mit USt-ID)" (this fiscal position
  translates to "Business partner EU (with VAT ID)".

Issue: The `vat_required` field of this fiscal position is False but
sould be True as the fiscal position is "(with VAT id)".

Cause of the issue:

The `vat_required` field is a Boolean of the account.fiscal.position
model without defaut value nor compute method. As such it is interpreted
as "False" when unset (just like any unset python boolean).
Since the `vat_required` field is not set in the data file of the
`l10n_de_skr03` localization for the "Geschäftspartner EU (mit USt-ID)"
fiscal position, it will be interpreted as False.

Fix:

We update the data file of the fiscal localization to the expected value

opw-3721912

X-original-commit: 3e320ff
@lase-odoo lase-odoo force-pushed the saas-16.3-15.0-opw-3721912-german_partner_VAT_required-lase-joR4-fw branch from c4f0bfd to 771f4f7 Compare March 7, 2024 15:40
Copy link
Contributor

@FlorianGilbert FlorianGilbert left a comment

Choose a reason for hiding this comment

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

robodoo pushed a commit that referenced this pull request Mar 8, 2024
Steps to reproduce:

- Install the l10n_de package
- Create and select a german company
- Accounting > Configuration > Settings > Fiscal localization
- Set: Deutscher Kontenplan SKR03 for the fiscal localization
- Accounting > Configuration > Accounting > Fiscal Positions
- Click on "Geschäftspartner EU (mit USt-ID)" (this fiscal position
  translates to "Business partner EU (with VAT ID)".

Issue: The `vat_required` field of this fiscal position is False but
sould be True as the fiscal position is "(with VAT id)".

Cause of the issue:

The `vat_required` field is a Boolean of the account.fiscal.position
model without defaut value nor compute method. As such it is interpreted
as "False" when unset (just like any unset python boolean).
Since the `vat_required` field is not set in the data file of the
`l10n_de_skr03` localization for the "Geschäftspartner EU (mit USt-ID)"
fiscal position, it will be interpreted as False.

Fix:

We update the data file of the fiscal localization to the expected value

opw-3721912

closes #156934

X-original-commit: 3e320ff
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
@robodoo robodoo closed this Mar 8, 2024
@fw-bot fw-bot deleted the saas-16.3-15.0-opw-3721912-german_partner_VAT_required-lase-joR4-fw branch March 22, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants