Health
61/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 8 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.29 MB
Module directory on disk
Code analysis
2 migration notes
3 models
1 view
1 HTTP endpoint
Migration considerations
refresh_pos_cache_cron— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourceview_pos_config_kanban— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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…