diff options
| author | RomainLibert <rli@odoo.com> | 2019-04-08 11:28:09 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-05-31 10:21:21 +0200 |
| commit | df69d5b3450a5c8e58e27ac02761468ca03df0ba (patch) | |
| tree | 70021f2576ed3359a5c59a9ea0c44564ba36ad41 /addons/hr_gamification/views | |
| parent | acd8638575915c876ffbd197f75cfa66d78d6724 (diff) | |
[IMP] hr_gamification: Adapt module with new hr.employee.public model
Diffstat (limited to 'addons/hr_gamification/views')
| -rw-r--r-- | addons/hr_gamification/views/hr_employee_views.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/hr_gamification/views/hr_employee_views.xml b/addons/hr_gamification/views/hr_employee_views.xml index 4390f50327b..285d9a44136 100644 --- a/addons/hr_gamification/views/hr_employee_views.xml +++ b/addons/hr_gamification/views/hr_employee_views.xml @@ -25,4 +25,28 @@ </field> </record> + <record id="hr_employee_public_view_form" model="ir.ui.view"> + <field name="name">hr.employee.public.view.form.inherit</field> + <field name="model">hr.employee.public</field> + <field name="inherit_id" ref="hr.hr_employee_public_view_form"/> + <field name="arch" type="xml"> + + <xpath expr="//page[@name='public']" position="after"> + <page string="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)]}"> + <p> + Grant this employee his first badge + </p><p class="oe_grey"> + Badges are rewards of good work. Give them to people you believe deserve it. + </p> + </div> + <field name="badge_ids" mode="kanban" widget="many2many"/> + </page> + </xpath> + + </field> + </record> + </odoo> |
