summaryrefslogtreecommitdiff
path: root/addons/pos_cache/controllers
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/pos_cache/controllers
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/pos_cache/controllers')
-rw-r--r--addons/pos_cache/controllers/__init__.py2
-rw-r--r--addons/pos_cache/controllers/main.py12
2 files changed, 14 insertions, 0 deletions
diff --git a/addons/pos_cache/controllers/__init__.py b/addons/pos_cache/controllers/__init__.py
new file mode 100644
index 00000000..9a57ed53
--- /dev/null
+++ b/addons/pos_cache/controllers/__init__.py
@@ -0,0 +1,2 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from . import main
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()