mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 07:32:04 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -7,21 +7,26 @@
|
|||
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<xpath expr="//page[@name='public']" position="after">
|
||||
<page string="Received Badges" name="received_badges" attrs="{'invisible': [('user_id', '=', False)]}">
|
||||
<xpath expr="//page[@name='hr_settings']" position="before">
|
||||
<page string="Badges" name="received_badges" invisible="not user_id">
|
||||
<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 class="o_field_nocontent" invisible="has_badges">
|
||||
<div class="o_nocontent_help">
|
||||
<p class="o_view_nocontent_neutral_face"></p>
|
||||
<p>
|
||||
There are no badges for this employee.<br/>
|
||||
It's time to allow the first one.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<field name="badge_ids" mode="kanban" />
|
||||
<div class="d-flex justify-content-center">
|
||||
<button class="mt-2 grant_badge_btn o_kanban_renderer o_kanban_record o-kanban-button-new btn btn-link py-3" string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/>
|
||||
</div>
|
||||
</div>
|
||||
<field name="badge_ids" mode="kanban" />
|
||||
</page>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -31,20 +36,26 @@
|
|||
<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" name="received_badges" attrs="{'invisible': [('user_id', '=', False)]}">
|
||||
<page name="resume" position="after">
|
||||
<page string="Badges" name="received_badges" invisible="not user_id">
|
||||
<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 class="o_field_nocontent" invisible="has_badges">
|
||||
<div class="o_nocontent_help">
|
||||
<p class="o_view_nocontent_neutral_face"></p>
|
||||
<p>
|
||||
There are no badges for this employee.<br/>
|
||||
It's time to allow the first one.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<field name="badge_ids" mode="kanban" widget="many2many"/>
|
||||
<div class="d-flex justify-content-center">
|
||||
<button class=" mt-2 grant_badge_btn o_kanban_renderer o_kanban_record o-kanban-button-new btn btn-link py-3" string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/>
|
||||
</div>
|
||||
</div>
|
||||
<field name="badge_ids" mode="kanban" widget="many2many"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</page>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue