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

[13.0] [MIG] website_sale_checkout_country_vat: Migration to v13.0 #505

Merged

Conversation

CarlosRoca13
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 commented Feb 23, 2021

@ernestotejeda
Copy link
Member

@CarlosRoca13 check travis.
Set OCA/website#824 as a dependency in oca_dependencies.txt

@CarlosRoca13 CarlosRoca13 force-pushed the 13.0-MIG-website_sale_checkout_country_vat branch from bba5970 to 45996ae Compare February 24, 2021 07:20
sergio-teruel and others added 12 commits March 8, 2021 12:41
Replace settings with sane defaults. Update VAT flag when address country is updated.
Migrated to v9, with corresponding changes.

Add repo dependency.

Fixes in README.
If you leave country field empty before pressing the confirm button at checkout, you were getting a 500 error because `country_id` was `""` (str), which cannot be searched in an int field.

Now we set a default `False` value, which will return an empty recordset without that problem.
Add is-invalid class to the input tag when an error is received
This module happened to be working accidentally because [it was inheriting from a view that had another inheriting view which defined the necessary elements][1]; but that view can be disabled and then this module breaks.

Fixed by inheriting from the correct view.

Also benefits from OCA/website#720 by using readonly mode if that module is updated.

@Tecnativa TT17694

[1]: https://github.com/odoo/odoo/blob/6e99a89574d11811c03fe3cdc61922352a9610ea/addons/website_sale/views/templates.xml#L1296
@CarlosRoca13 CarlosRoca13 force-pushed the 13.0-MIG-website_sale_checkout_country_vat branch from 45996ae to 542946c Compare March 8, 2021 11:42
@pedrobaeza pedrobaeza added this to the 13.0 milestone Mar 10, 2021
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Tested functionally on runbot

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 13.0-ocabot-merge-pr-505-by-pedrobaeza-bump-nobump, awaiting test results.

@pedrobaeza
Copy link
Member

@CarlosRoca13 please remember to comment on the thread about the previous problems being solved, as if not, reviewers don't get advertised of the new condition.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit 3a5c289 into OCA:13.0 Mar 11, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f22e68a. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

None yet

10 participants