diff options
| author | Yenthe666 <yenthevg@gmail.com> | 2019-12-11 13:23:43 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-12-16 15:10:24 +0000 |
| commit | 7876af3ad0f35d4e0ac2839546aef6fd0bc117e1 (patch) | |
| tree | ab2eeb672a55fe828dc8e3cf49d3430fccb01415 /addons/hr_gamification | |
| parent | b5db1c61ee078c0dc0b6beec955d7fffedc6532b (diff) | |
[IMP] *: set name on page elements
page is an element that is often used for xpath
closes odoo/odoo#41718
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/hr_gamification')
| -rw-r--r-- | addons/hr_gamification/views/hr_employee_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/hr_gamification/views/hr_employee_views.xml b/addons/hr_gamification/views/hr_employee_views.xml index 285d9a44136..f489a73a1c6 100644 --- a/addons/hr_gamification/views/hr_employee_views.xml +++ b/addons/hr_gamification/views/hr_employee_views.xml @@ -8,7 +8,7 @@ <field name="arch" type="xml"> <xpath expr="//page[@name='public']" position="after"> - <page string="Received Badges" attrs="{'invisible': [('user_id', '=', False)]}"> + <page string="Received Badges" name="received_badges" attrs="{'invisible': [('user_id', '=', False)]}"> <field name="has_badges" invisible="1"/> <button string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/> to reward this employee for a good action <div class="o_field_nocontent" attrs="{'invisible': [('has_badges', '=', True)]}"> @@ -32,7 +32,7 @@ <field name="arch" type="xml"> <xpath expr="//page[@name='public']" position="after"> - <page string="Received Badges" attrs="{'invisible': [('user_id', '=', False)]}"> + <page string="Received Badges" name="received_badges" attrs="{'invisible': [('user_id', '=', False)]}"> <field name="has_badges" invisible="1"/> <button string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/> to reward this employee for a good action <div class="o_field_nocontent" attrs="{'invisible': [('has_badges', '=', True)]}"> |
