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

translations of text added in js or static xml #127

Open
schout-it opened this issue Sep 25, 2017 · 0 comments
Open

translations of text added in js or static xml #127

schout-it opened this issue Sep 25, 2017 · 0 comments

Comments

@schout-it
Copy link

schout-it commented Sep 25, 2017

<html t-att-lang="lang and lang.replace('_', '-')" t-att-data-website-id="website.id if editable and website else None" t-att-data-editable="'1' if editable else None" t-att-data-translatable="'1' if translatable else None" t-att-data-view-xmlid="xmlid if editable else None" t-att-data-main-object="repr(main_object) if editable else None" t-att-data-oe-company-name="res_company.name">

In this line the data attribute website-id is not set if the user has no edit rights on the website

this causes the javascript translations to not be loaded according to:

https://github.com/odoo/odoo/blob/4365ebc19c3febb3a47a50745c13729701b8714d/addons/website/static/src/js/website.js#L306

Is there a reason the website id is hidden?
According to a colleague v9 is also affected by this issue

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

No branches or pull requests

1 participant