[ADD] pos_cache: add pos_cache ported to v9 from odoo-extra
Originally written by Nicolas Seinlet <nse@odoo.com>. 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.
Showing
- addons/pos_cache/__init__.py 3 additions, 0 deletionsaddons/pos_cache/__init__.py
- addons/pos_cache/__openerp__.py 25 additions, 0 deletionsaddons/pos_cache/__openerp__.py
- addons/pos_cache/data/pos_cache_data.xml 16 additions, 0 deletionsaddons/pos_cache/data/pos_cache_data.xml
- addons/pos_cache/doc/cache.rst 13 additions, 0 deletionsaddons/pos_cache/doc/cache.rst
- addons/pos_cache/models/__init__.py 3 additions, 0 deletionsaddons/pos_cache/models/__init__.py
- addons/pos_cache/models/pos_cache.py 97 additions, 0 deletionsaddons/pos_cache/models/pos_cache.py
- addons/pos_cache/security/ir.model.access.csv 2 additions, 0 deletionsaddons/pos_cache/security/ir.model.access.csv
- addons/pos_cache/static/src/js/pos_cache.js 43 additions, 0 deletionsaddons/pos_cache/static/src/js/pos_cache.js
- addons/pos_cache/views/pos_cache_templates.xml 10 additions, 0 deletionsaddons/pos_cache/views/pos_cache_templates.xml
- addons/pos_cache/views/pos_cache_views.xml 18 additions, 0 deletionsaddons/pos_cache/views/pos_cache_views.xml
Loading
Please register or sign in to comment