19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -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>