You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 lines
2.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This setting adds time log option for track employees' work hours -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.pos</field>
<field name="model">res.config.settings</field>
<field name="inherit_id"
ref="point_of_sale.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='pos_interface_section']"
position="inside">
<div class="col-12 col-lg-6 o_setting_box"
title="When starting a session, it automatically creates a task in the selected project and adds the timesheet of the employees based on their work hours automatically." attrs="{'invisible': [('pos_module_pos_hr','=',False)]}">
<div class="o_setting_left_pane">
<field name="pos_time_log"
attrs="{'readonly': [('pos_has_active_session','=', True)]}"/>
</div>
<div class="o_setting_right_pane">
<span class="o_form_label">Time Log
</span>
<div class="text-muted">
Automatically record employees' work hours in the
timesheet
</div>
<div class="content-group mt16">
<div class="row">
<label for="pos_project_id"
string="Project"
class="col-lg-3 o_light_label"/>
<field name="pos_project_id"
attrs="{'required': [('pos_time_log', '=', True)]}"
domain="[('company_id', '=', company_id)]"/>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>