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

[12.0][FIX] website_sale_checkout_country_vat: inherit the correct view #351

Conversation

yajo
Copy link
Member

@yajo yajo commented May 4, 2020

This module happened to be working accidentally because it was inheriting from a view that had another inheriting view which defined the necessary elements; 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

@yajo yajo self-assigned this May 4, 2020
@yajo yajo requested review from pedrobaeza and Tardo May 4, 2020 07:36
@yajo yajo added the bug label May 4, 2020
@yajo yajo added this to the 12.0 milestone May 4, 2020
@yajo yajo marked this pull request as draft May 4, 2020 11:14
@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). 🤖

@pedrobaeza
Copy link
Member

@yajo can we merge this?

@yajo
Copy link
Member Author

yajo commented May 11, 2020

We could, but this fix is incomplete. 🤷‍♂️

@pedrobaeza
Copy link
Member

OK, then please finish it

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
@yajo yajo force-pushed the 12.0-website_sale_checkout_country_vat-fix_template_parent branch from 030986e to f44cd5e Compare May 13, 2020 10:03
@yajo yajo marked this pull request as ready for review May 13, 2020 10:04
@yajo
Copy link
Member Author

yajo commented May 13, 2020

Finished.

@pedrobaeza pedrobaeza changed the title [FIX] website_sale_checkout_country_vat: inherit the correct view [12.0][FIX] website_sale_checkout_country_vat: inherit the correct view May 13, 2020
@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

@pedrobaeza The merge process could not start, because of exception <class 'requests.exceptions.ReadTimeout'>: A connection-level exception occurred: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10).

@pedrobaeza
Copy link
Member

/ocabot merge minor

OCA-git-bot added a commit that referenced this pull request May 13, 2020
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

/ocabot merge minor

OCA-git-bot added a commit that referenced this pull request May 13, 2020
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor, awaiting test results.

OCA-git-bot added a commit that referenced this pull request May 13, 2020
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 12.0-ocabot-merge-pr-351-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit fb843bd into OCA:12.0 May 13, 2020
@OCA-git-bot
Copy link
Contributor

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

@yajo yajo deleted the 12.0-website_sale_checkout_country_vat-fix_template_parent branch May 14, 2020 08:42
@yajo
Copy link
Member Author

yajo commented May 14, 2020

We need OCA/website#720 to fully benefit from this patch.

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.

5 participants