-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Conversation
There was a problem hiding this 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"> |
There was a problem hiding this comment.
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">
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
1c558d0
to
b9e9f62
Compare
The string attribute should not be used as a selector, because it is translatable.
cc @RoelAdriaans-B-informed