TIP: You can type at any time to perform a new search.
pos_cache
pos_cache · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 1.0
- Category
- Sales/Point of Sale
- Folder size
- 0.29 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-07 05:42:59
- Authors
- Maintainers
- None
- Committers
- Martin Trigaux, Odoo Translation Bot, Pierre Masereel, Romeo Fragomeli, Joseph Caburnay, Martin Trigaux (mat)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This creates a product cache per POS config. It drastically lowers the time it takes to load a POS session with a lot of products.
Code Analysis ⓘ
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_pos_config_kanban |
pos.config.kanban.view.inherit.pos_cache | pos.config | kanban | Inherits point_of_sale.view_pos_config_kanban |
HTTP endpoints (1)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | PosCache.load_onboarding_data |
inherited | http | ALL |
Models touched (3)
New fields (5)
-
cacheBinaryattachment=True -
compute_user_idMany2one → res.usersrequired=True args: 'res.users', 'Cache compute user' -
config_idMany2one → pos.configondelete='cascade'required=True args: 'pos.config' -
product_domainTextrequired=True -
product_fieldsTextrequired=True
-
cache2json(self) -
get_product_domain(self)@api.model -
get_product_fields(self)@api.model -
refresh_all_caches(self)@api.model -
refresh_cache(self)
New fields (3)
-
cache_idsOne2many → pos.cacheargs: 'pos.cache', 'config_id' -
limit_products_per_requestIntegercompute='_compute_limit_products_per_request' -
oldest_cache_timeDatetimecompute='_get_oldest_cache_time'readonly=Truestring='Oldest cache time'
-
delete_cache(self)
New fields (0)
No new fields.
Public methods (3)-
get_cached_products(self, start, end) -
get_products_from_cache(self) -
get_total_products_count(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…