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.
 
 
 
 
 

33 lines
1.6 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This XML code represents an Odoo view modification for the 'pos.config'
model. It adds a screen lock functionality to the point of sale configuration form. -->
<record id="pos_config_view_form" model="ir.ui.view">
<field name="name">
pos.config.view.form.inherit.pos.idle.time.session.lock
</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="arch" type="xml">
<xpath expr="//h2" position="before">
<!-- Add the session lock configuration-->
<h2>Screen Lock</h2>
<group name="session_lock">
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="pos_lock"/>
</div>
<div class="o_setting_right_pane">
<label for="pos_lock"/><br/>
<label for="idle_time_limit" attrs="{'invisible':[('pos_lock','=',False)]}"/>
<field name="idle_time_limit" attrs="{'invisible':[('pos_lock','=',False)]}"/>
<span attrs="{'invisible':[('pos_lock','=',False)]}"> Minutes</span>
</div>
</div>
</div>
</group>
</xpath>
</field>
</record>
</odoo>