2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
<record id="view_badge_wizard_grant_employee" model="ir.ui.view">
|
|
|
|
<field name="name">gamification.badge.user.wizard.form.inherit</field>
|
|
|
|
<field name="model">gamification.badge.user.wizard</field>
|
|
|
|
<field name="inherit_id" ref="gamification.view_badge_wizard_grant" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<data>
|
|
|
|
<field name="user_id" position="attributes">
|
|
|
|
<attribute name="invisible">True</attribute>
|
|
|
|
</field>
|
|
|
|
<xpath expr="//field[@name='user_id']" position="after">
|
|
|
|
<field name="employee_id" nolabel="1" domain="[('user_id', '!=', False),('user_id', '!=', uid)]" />
|
|
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_badge_wizard_reward" model="ir.ui.view">
|
|
|
|
<field name="name">gamification.badge.user.wizard.form</field>
|
|
|
|
<field name="model">gamification.badge.user.wizard</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Reward Employee with">
|
|
|
|
What are you thankful for?
|
|
|
|
<group>
|
|
|
|
<field name="employee_id" invisible="1" />
|
|
|
|
<field name="user_id" invisible="1" />
|
|
|
|
<field name="badge_id" nolabel="1" colspan="4" />
|
|
|
|
<field name="comment" nolabel="1" placeholder="Describe what they did and why it matters (will be public)" />
|
|
|
|
</group>
|
|
|
|
<footer>
|
|
|
|
<button string="Reward Employee" type="object" name="action_grant_badge" class="btn-primary" />
|
|
|
|
<button string="Cancel" special="cancel" class="btn-default"/>
|
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<act_window id="action_reward_wizard" domain="[]"
|
|
|
|
name="Reward Employee"
|
|
|
|
target="new"
|
|
|
|
res_model="gamification.badge.user.wizard"
|
|
|
|
context="{'default_employee_id': active_id, 'employee_id': active_id}"
|
|
|
|
view_type="form" view_mode="form"
|
|
|
|
view_id="view_badge_wizard_reward"/>
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|