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

15.0 mig website legal page #875

Closed
wants to merge 41 commits into from

Conversation

schout-it
Copy link

No description provided.

Antonio Espinosa and others added 30 commits February 1, 2022 11:01
- Fix review comments
- Icon changed
- Bug tracker added
- [IMP] README and OCA as author

[FIX] Space at the end of a traslation line

[FIX] mailto links in default legal pages is malformed
Many submodules from this one need the template I'm adding.

Having it here allows for better reusability and avoids duplicated translation efforts.
* Move legal pages to explicit /legal routes

Fixes by PR review

Fix my obvious lack of testing
- Update copyright headers.
- Update copyright holders data.
- Remove .pot file.
- Add migration script.
* [ADD][website_multi_theme] Allow different themes by website

This a somewhat hacky addon that adds support for setting a different theme by website.

Always updates views arch in development and demo instances.

This allows faster development, while keeping stability and no surprises in production.

* fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* [FIX][website_legal_page] Correctly raise a 404 error instead of a 500 if a view is not found

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website

* fixup! [FIX][website_legal_page] Correctly raise a 404 error instead of a 500 if a view is not found

* squash! fixup! [FIX][website_legal_page] Correctly raise a 404 error instead of a 500 if a view is not found

Fix tests that were getting warnings logged and random timeouts.
[FIX] Linter on website_multi_theme py file
[FIX] website_legal_page: Fix PO
Currently translated at 100,0% (49 of 49 strings)

Translation: website-11.0/website-11.0-website_legal_page
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_legal_page/de/
Currently translated at 91,8% (45 of 49 strings)

Translation: website-11.0/website-11.0-website_legal_page
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_legal_page/es/
Currently translated at 91,8% (45 of 49 strings)

Translation: website-11.0/website-11.0-website_legal_page
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_legal_page/es/
IMP  website_legal_page with CSS classes to ease styling
FIX README
[FIX] website_legal_page: update view names
Currently translated at 100.0% (49 of 49 strings)

Translation: website-12.0/website-12.0-website_legal_page
Translate-URL: https://translation.odoo-community.org/projects/website-12-0/website-12-0-website_legal_page/pt_BR/
@schout-it schout-it mentioned this pull request Feb 1, 2022
12 tasks
Copy link

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

Code review, LG 👍

from odoo import SUPERUSER_ID, api


def _merge_views(env, xmlids):

Choose a reason for hiding this comment

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

Any chance we can have some unit tests for this method?
If you don't have the time, don't worry about it..



class WebsiteLegalPage(http.Controller):
@http.route(["/shop/terms"], type="http", auth="public", website=True)
Copy link
Member

@tarteo tarteo Mar 11, 2022

Choose a reason for hiding this comment

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

In 15.0 this is /terms not /shop/terms
image

Copy link
Member

Choose a reason for hiding this comment

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

This seems to be pending.

@JrAdhoc
Copy link

JrAdhoc commented May 5, 2022

Functional review 👍

PR name should be: [MIG] website_legal_page: Migration to 15.0

Copy link
Member

@ioans73 ioans73 left a comment

Choose a reason for hiding this comment

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

Functional review 👍🏻

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

Successfully merging this pull request may close these issues.