[FIX] pos_cache: repair broken xpath

The button `set_deprecated` no longer exists in the parent view.
Add the button next to the pos_cache field, at the end of the form.
This commit is contained in:
Martin Trigaux
2016-08-02 18:15:20 +02:00
parent 30207886b7
commit 683471ae6f
+3 -4
View File
@@ -6,11 +6,10 @@
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.view_pos_config_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='set_deprecate']" position="after">
<button name='delete_cache' type="object" string="Recompute cache"/>
</xpath>
<xpath expr="//field[@name='sequence_id']" position="after">
<xpath expr="//field[@name='currency_id']" position="after">
<field name='oldest_cache_time'/>
<button name='delete_cache' type="object"
string="Recompute cache"/>
</xpath>
</field>
</record>