From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/pos_cache/controllers/main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 addons/pos_cache/controllers/main.py (limited to 'addons/pos_cache/controllers/main.py') diff --git a/addons/pos_cache/controllers/main.py b/addons/pos_cache/controllers/main.py new file mode 100644 index 00000000..ac17d4fd --- /dev/null +++ b/addons/pos_cache/controllers/main.py @@ -0,0 +1,12 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. +from odoo.addons.point_of_sale.controllers.main import PosController +from odoo import http +from odoo.http import request + + +class PosCache(PosController): + + @http.route() + def load_onboarding_data(self): + super().load_onboarding_data() + request.env["pos.cache"].refresh_all_caches() -- cgit v1.2.3