summaryrefslogtreecommitdiff
path: root/addons/pos_cache/controllers/main.py
blob: ac17d4fd8916ee865679a9e2e27ef5ea3ade1eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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()