[ADD]hr_employee_stats_sheet_lunch_voucher
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<odoo>
|
||||
<record id="hr_employee_stats_tree_lunch_voucher_inherit" model="ir.ui.view">
|
||||
<field name="name">hr.employee.stats.tree.lunch.voucher.inherit</field>
|
||||
<field name="model">hr.employee.stats</field>
|
||||
<field name="inherit_id" ref="hr_employee_stats_sheet.view_hr_employee_stats_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="total_hours" position="after">
|
||||
<field name="lunch_voucher" sum="Total"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
@@ -0,0 +1,22 @@
|
||||
<odoo>
|
||||
<record id="timesheet_sheet_form_lunch_voucher_inherit" model="ir.ui.view">
|
||||
<field name="name">timesheet.sheet.form.lunch.voucher.inherit</field>
|
||||
<field name="model">hr_timesheet.sheet</field>
|
||||
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="department_id" position="after">
|
||||
<field name="lunch_voucher_count" string="Lunch voucher Count" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_timesheet_sheet_tree_lunch_voucher_inherit" model="ir.ui.view">
|
||||
<field name="name">hr.timesheet.sheet.tree.lunch.voucher.inherit</field>
|
||||
<field name="model">hr_timesheet.sheet</field>
|
||||
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="department_id" position="after">
|
||||
<field name="lunch_voucher_count" string="Lunch voucher Count" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
@@ -0,0 +1,35 @@
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.hr.timesheet</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="priority" eval="55" />
|
||||
<field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='hr_timesheet_sheet']" position="inside">
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="lunch_voucher_min_worked_hours"/>
|
||||
<span
|
||||
class="fa fa-lg fa-building"
|
||||
title="Minimal number of hours worked in a day to get a lunch voucher."
|
||||
groups="base.group_multi_company"
|
||||
/>
|
||||
<div class="text-muted">
|
||||
Indicate the minimal number of hours worked in a day to get a lunch voucher (by default 5 hours).
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mb16">
|
||||
<field
|
||||
name="lunch_voucher_min_worked_hours"
|
||||
class="o_light_label"
|
||||
widget="float"
|
||||
required="1"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
Reference in New Issue
Block a user