Skip to content
Health
61/100
fair
  • Security25/25
    No findings
  • Activity6/25
    Last human commit 34 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
(inherited route override) PosCache.load_onboarding_data inherited http ALL

Models touched 3

New fields (5)
  • cache Binary
    attachment=True
  • compute_user_id Many2one → res.users
    required=True args: 'res.users', 'Cache compute user'
  • config_id Many2one → pos.config
    ondelete='cascade' required=True args: 'pos.config'
  • product_domain Text
    required=True
  • product_fields Text
    required=True
Public methods (5)
  • 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_ids One2many → pos.cache
    args: 'pos.cache', 'config_id'
  • limit_products_per_request Integer
    compute='_compute_limit_products_per_request'
  • oldest_cache_time Datetime
    compute='_get_oldest_cache_time' readonly=True string='Oldest cache time'
Public methods (1)
  • 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…