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

[FIX] Fixed the res.users view #74

Merged
merged 1 commit into from
Jan 23, 2017
Merged

Conversation

Garamotte
Copy link

The string attribute should not be used as a selector, because it is translatable.

cc @RoelAdriaans-B-informed

Copy link

@RoelAdriaans RoelAdriaans left a comment

Choose a reason for hiding this comment

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

Checked in Odoo v9 Enterprise with other translations, fixes issue I was having

@@ -6,12 +6,12 @@
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form" />
<field name="arch" type="xml">
<page string="Preferences">
<group name="printing">
<xpath expr="//page[group/group[@name='preferences']]" position="inside">
Copy link
Member

Choose a reason for hiding this comment

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

You can put it even more generic:

<xpath expr="//group[@name='preferences']/ancestor::page" position="inside">

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I didn't know this syntax, I update with your version.

If there are several page ancestors, would it take the first or the last ?

Copy link
Member

Choose a reason for hiding this comment

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

It would take the first, although you can put also indexes if needed, but it's not the usual case.

The string attribute should not be used as a selector, because it is
translatable.
@lasley lasley merged commit a8d65fc into OCA:9.0 Jan 23, 2017
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.

4 participants