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 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…