[IMP] pos_cache: clarify button function

The button does not recompute the cache, it removes it which will be recomputed
when you launch a POS.
Hide the button when there is no cache (e.g. after installation).
This commit is contained in:
Martin Trigaux
2016-08-02 18:15:32 +02:00
parent 683471ae6f
commit 77fad18f8a
+2 -1
View File
@@ -9,7 +9,8 @@
<xpath expr="//field[@name='currency_id']" position="after">
<field name='oldest_cache_time'/>
<button name='delete_cache' type="object"
string="Recompute cache"/>
string="Invalidate cache"
attrs="{'invisible': [('oldest_cache_time', '=', False)]}"/>
</xpath>
</field>
</record>