flectra/addons/pos_cache/views/pos_cache_views.xml
2018-01-16 02:34:37 -08:00

19 lines
786 B
XML

<?xml version="1.0"?>
<flectra>
<data>
<record id="pos_config_view_form_inherit_pos_cache" model="ir.ui.view">
<field name="name">pos.config.form.inherit.pos.cache</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="//field[@name='currency_id']" position="after">
<field name='oldest_cache_time'/>
<button name='delete_cache' type="object"
string="Invalidate cache"
attrs="{'invisible': [('oldest_cache_time', '=', False)]}"/>
</xpath>
</field>
</record>
</data>
</flectra>