From 97b0723722d8ebd3cbf5828c871da19f3d471187 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Wed, 11 Feb 2015 10:18:10 +0100 Subject: [ADD] pos_cache: add pos_cache ported to v9 from odoo-extra Originally written by Nicolas Seinlet . Provides pos.config with a product.product cache. This adds a ported and refactored pos_cache from odoo-extra: - Adapt to changes in web and point_of_sale since 8.0 - Refactor the load_server_data function, so it isn't copy pasted but cleanly patched into the load_server_data super. - Make the cron inactive by default. - Also remove retrying the write 5 times, when it fails we'll just have to wait until the cron triggers again (an hour from then). - Store the product.product fields and domain on pos_cache. When cache is requested from the pos with a different field or domain it'll automatically recompute. Necessary for when someone would install a module that modifies these things in the pos after a cache has been generated. - Have multiple caches per pos_config per user - Make the module adhere to the Odoo Coding Guidelines. --- addons/pos_cache/data/pos_cache_data.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 addons/pos_cache/data/pos_cache_data.xml (limited to 'addons/pos_cache/data/pos_cache_data.xml') diff --git a/addons/pos_cache/data/pos_cache_data.xml b/addons/pos_cache/data/pos_cache_data.xml new file mode 100644 index 00000000000..709e6edea35 --- /dev/null +++ b/addons/pos_cache/data/pos_cache_data.xml @@ -0,0 +1,16 @@ + + + + + Refresh POS Cache + + 1 + hours + -1 + + + + + + + -- cgit v1.2.3