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

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

Conversation

lase-odoo
Copy link
Contributor

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

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
@robodoo
Copy link
Contributor

robodoo commented Mar 5, 2024

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 5, 2024
Copy link
Contributor

@yosa-odoo yosa-odoo left a comment

Choose a reason for hiding this comment

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

Geschäftspartner EU (mit USt-ID)

"mit USt-ID" = "with tax"

LGTM

@yosa-odoo yosa-odoo marked this pull request as ready for review March 5, 2024 10:20
@C3POdoo C3POdoo requested review from a team and FlorianGilbert and removed request for a team March 5, 2024 10:35
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 6, 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 #156444

Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
@robodoo robodoo closed this Mar 6, 2024
@fw-bot fw-bot deleted the 15.0-opw-3721912-german_partner_VAT_required-lase branch March 20, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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