-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
[13.0] [MIG] website_sale_checkout_country_vat: Migration to v13.0 #505
Conversation
@CarlosRoca13 check travis. |
bba5970
to
45996ae
Compare
…e in website checkout form.
Replace settings with sane defaults. Update VAT flag when address country is updated.
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
45996ae
to
542946c
Compare
There was a problem hiding this 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
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
@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. |
This PR has the |
Congratulations, your PR was merged at f22e68a. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT27482
please @sergio-teruel @ernestotejeda review this