diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-08-02 18:12:25 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-08-02 18:15:32 +0200 |
| commit | 77fad18f8aff1c52eb86600b1dbead04f1b0cd20 (patch) | |
| tree | 7591f75e67f5a044c93884029c90aa3b8c7a148d /addons/pos_cache | |
| parent | 683471ae6fea924534bbf8a51b54c9b8d7c0295c (diff) | |
[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).
Diffstat (limited to 'addons/pos_cache')
| -rw-r--r-- | addons/pos_cache/views/pos_cache_views.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/pos_cache/views/pos_cache_views.xml b/addons/pos_cache/views/pos_cache_views.xml index dca4b9cf07c..9b4454c45d7 100644 --- a/addons/pos_cache/views/pos_cache_views.xml +++ b/addons/pos_cache/views/pos_cache_views.xml @@ -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> |
