[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user