# Copyright 2015 Antiun IngenierĂ­a, S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import http from odoo.addons.website_sale.controllers.main import WebsiteSale class RequireLoginToCheckout(WebsiteSale): @http.route(auth="user") def checkout(self, **post): return super(RequireLoginToCheckout, self).checkout(**post)