summaryrefslogtreecommitdiff
path: root/addons/pos_cache/models
AgeCommit message (Collapse)Author
2021-02-19[FIX] pos_cache: load products by batchesIvan Yelizariev
pos_cache is used to speed up opening POS in databases with large number of products. In some cases it's still not enough and thousands of records cannot be cached in a single request, because reading information may take more time than maximum allowed. As a workaround, this commit adds posibility to split request into few small requests. To activate the feature set system parameter ``pos_cache.limit_products_per_request`` to appropriate value depending on your server capacity. --- opw-2439347 closes odoo/odoo#66539 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-12-07[FIX] pos_cache: fix error on opening POSIvan Yelizariev
STEP: * install pos_cache * create some products (this step is not needed in demo database) * open POS BEFORE: error "TypeError: Object of type 'datetime' is not JSON serializable" AFTER: no errors WHY: * Since Odoo 12 date fields are not strings: https://github.com/odoo/odoo/commit/960360afe478a8f7b9c456721b5591154952a37d * Since Odoo 14 fields lists to read contains write_date: https://github.com/odoo/odoo/commit/c6397ab3b3654da336a4269a81d5d91016baf520 -- see models.js --- opw-2410334 closes odoo/odoo#62952 Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2019-09-17[FIX] *: remove old deprecated modules/functionsJulien Castiaux
PEP-594 is deprecating a bunch of modules. As part of the cleanup, we are also dealing with long deprecated modules, functions and aliases. * `assert_` -> `assertTrue` * `assertEquals` -> `assertEqual` * `assertNotEquals` -> `assertNotEqual` * `assertAlmostEquals` -> `assertAlmostEqual` * `assertRaisesRegexp` -> `assertRaisesRegex` * `assertRegexpMatches` -> `assertRegex` * `base64.encodestring` -> `base64.encodebytes` * `base64.decodestring` -> `base64.decodebytes` * `inspect.getargspec` -> `inspect.signature` * `inspect.formatargspec` -> `inspect.signature` * `logging.warn` -> `logging.warning` closes odoo/odoo#36863 Task: 2003936 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-07-17[REM] *: calls to @api.multiAdrian Torres
Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
2019-07-05[REM] *: remove calls to `api.one` and adapt codeAdrian Torres
Adapt all code that was using `api.one` to recordset-style method and remove any and all calls to `api.one` in preparation for its removal.
2019-07-04[FIX] *: sudo() -> with_user()Raphael Collet
2019-01-22[FIX] base_gengo, pad, pos_cache: add missing _description on some modelsmreficent
closes odoo/odoo#30412
2017-11-22[FIX] pos_cache: P3 compatibilityVictor Tabuenca Calvo
2017-10-13[MERGE] forward port branch saas-16 up to 8ee9024a4c8Christophe Simonis
2017-10-12[MERGE] forward port branch saas-15 up to 945dd32eb02Christophe Simonis
2017-10-12[10.0][FIX] pos_cache: unable to refresh cache in a multi-company contextRaphael Collet
2017-08-28[IMP] pos_cache: use JSON instead of pickle for the cache formatRaphael Collet
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2016-10-19[MERGE] forward port branch saas-12 up to 00f4547Christophe Simonis
2016-10-19[FIX] pos_cache: use base64 for attachment contentMartin Trigaux
an ir.attachment expects base64 content Closes #13878
2016-08-20[MERGE] forward port branch saas-12 up to 9ad5f26Christophe Simonis
2016-08-10[IMP] various: use odoo for imports instead of openerp and update class namesThibault Delavallée
2016-08-05[IMP] force attachment storage for some binary fieldsFabien Meghazi
2016-07-25[FIX] pos_cache: fix rare deserialization problemsOlivier Dony
Fixes opw-683800
2016-02-05[FIX] pos_cache: take into account language of the compute userJoren Van Onder
Otherwise you'll always end up with untranslated product names. Fixes #10736
2015-09-25[ADD] pos_cache: add pos_cache ported to v9 from odoo-extraJoren Van Onder
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.