Skip to content

[19.0][MIG] website_sale_vat_required: Migration to 19.0 - #1264

Open
ManfredNelvin-Dev wants to merge 24 commits into
OCA:19.0from
ManfredNelvin-Dev:19.0-mig-website_sale_vat_required
Open

[19.0][MIG] website_sale_vat_required: Migration to 19.0#1264
ManfredNelvin-Dev wants to merge 24 commits into
OCA:19.0from
ManfredNelvin-Dev:19.0-mig-website_sale_vat_required

Conversation

@ManfredNelvin-Dev

Copy link
Copy Markdown

Migration of website_sale_vat_required to Odoo 19.0.

@OCA-git-bot OCA-git-bot added series:19.0 mod:website_sale_vat_required Module website_sale_vat_required labels Jul 8, 2026
@ManfredNelvin-Dev
ManfredNelvin-Dev force-pushed the 19.0-mig-website_sale_vat_required branch from f1d306e to d1aed26 Compare July 10, 2026 09:56

@cristina-hidalgo-tecnativa cristina-hidalgo-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested locally and LGTM.

The CI error is caused by this PR being the first to bring base_vat into the CI database, which exposes an invalid VAT number in website_sale_require_legal's tour — already fixed here .

A rebase of the branch should make the tests pass.

TT64169

@pedrobaeza

Copy link
Copy Markdown
Member

@ManfredNelvin-Dev can you rebase?

/ocabot migration website_sale_vat_required

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Aug 18, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 18, 2026
35 tasks
eLBati and others added 23 commits August 19, 2026 10:27
[FIX] Depend on vat validation module that causes the VAT number field to be displayed at checkout in the first place
This addon got migrated from 8.0. Relevant notes:

- Moved from `OCA/website` to `OCA/e-commerce`.
- Reduced license headers to new style ones, keeping copyright.
- Updated README template.
- Replaced dirty hack that disables addon in test mode, and hack the tour instead (actually testing the addon).
- Benefit from upstream updates, that now handles incorrect VAT errors.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-12.0/e-commerce-12.0-website_sale_vat_required
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_vat_required/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-13.0/e-commerce-13.0-website_sale_vat_required
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_vat_required/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_vat_required
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_vat_required/
…hods in test

Modify the tests so that we don't have to rely on the payment methods
module to run the tests for the functionality of this module.

TT44388
The tests were using a demo data product so if at any time this product
does not exist the tests start to fail. To avoid this, a new product is
created and used for testing. Also to locate the checkout button it is
better to locate it by its container element as the classes can change
depending on the configuration and modules used in the instance and it
can be a problem to locate it.
@ManfredNelvin-Dev
ManfredNelvin-Dev force-pushed the 19.0-mig-website_sale_vat_required branch from d1aed26 to 182f702 Compare August 19, 2026 05:00
@ManfredNelvin-Dev

Copy link
Copy Markdown
Author

@cristina-hidalgo-tecnativa Thank you for testing it locally and for the review. @pedrobaeza I have rebased the branch on the latest 19.0 and force-pushed the changes. The CI is now passing.

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ManfredNelvin several comments apart from the inline one:

  • The migration commit shouldn't include [19.0] as prefix.
  • Please squash into this one the other commit [IMP] website_sale_vat_required: Adapt tests for Odoo 19, as that's part of the migration.

Comment thread website_sale_vat_required/controllers/main.py Outdated
@ManfredNelvin-Dev
ManfredNelvin-Dev force-pushed the 19.0-mig-website_sale_vat_required branch from 182f702 to 2460d12 Compare August 19, 2026 06:41
@ManfredNelvin-Dev

Copy link
Copy Markdown
Author

@pedrobaeza Thanks for the review. I have squashed the test adaptation changes into the migration commit, updated the commit message to follow the migration convention, removed the extra blank line, and force-pushed the branch.

Comment thread website_sale_vat_required/controllers/main.py Outdated
@ManfredNelvin-Dev
ManfredNelvin-Dev force-pushed the 19.0-mig-website_sale_vat_required branch from 2460d12 to 84605fa Compare August 19, 2026 10:38

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On a test in runboat, the field is not marked with *:

Image

If I try to continue without filling VAT, the message appears, and then the field gets the *.

Is it possible to get it from the beginning?

@@ -1 +1,3 @@
# Copyright 2019 Tecnativa - Ernesto Tejeda

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

init files don't have copyright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:website_sale_vat_required Module website_sale_vat_required series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.