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

[16.0][FIX] website_legal_page: footer xpath #1018

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

danielduqma
Copy link

@danielduqma danielduqma commented Nov 13, 2023

In some cases, Odoo wraps original span inside another span for translation making view fail. This change allows it to be found eitherwise.

image

Steps to reproduce:

  1. Add a new website with one language
  2. In this website, add another language
  3. From main page of website, switch to the second language
  4. Enter translate menu

image

Reproduced on runboat, website My Website - 1018

@pedrobaeza pedrobaeza added this to the 16.0 milestone Nov 13, 2023
@pedrobaeza pedrobaeza requested review from pilarvargas-tecnativa and removed request for pilarvargas-tecnativa November 13, 2023 13:20
@papulo79
Copy link

LGTM!

@danielduqma danielduqma force-pushed the 16.0-fix-website_legal_page branch from 15e5fc6 to b407a2d Compare November 23, 2023 10:00
@danielduqma danielduqma changed the title [FIX] website_legal_page: footer xpath [16.0][FIX] website_legal_page: footer xpath Nov 23, 2023
Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -8,7 +8,7 @@
customize_show="True"
>
<xpath
expr="//footer//div/span[hasclass('o_footer_copyright_name')]"
expr="//footer//div//span[hasclass('o_footer_copyright_name')]"
Copy link
Member

Choose a reason for hiding this comment

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

A non-blocking suggestion.

Suggested change
expr="//footer//div//span[hasclass('o_footer_copyright_name')]"
expr="//footer//span[hasclass('o_footer_copyright_name')]"

Copy link
Author

Choose a reason for hiding this comment

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

I see that well, I tried to reduce diff to ease merge, but the important thing here is an HTML class inside element footer. Thanks!

In some cases, Odoo wraps original span inside another span for
translation, so this change allows it to be found eitherwise.
@danielduqma danielduqma force-pushed the 16.0-fix-website_legal_page branch from b407a2d to 249aa31 Compare November 27, 2023 08:03
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.

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 0a472a0 into OCA:16.0 Nov 27, 2023
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e79c8a8. 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.

5 participants