requiere login para realizar el checkout, cogido de OCA/e-commnerce

This commit is contained in:
santiky 2022-04-22 19:48:25 +02:00
parent 50f2a6d592
commit d6de99c5aa
Signed by: snt
GPG key ID: A9FD34930EADBE71
23 changed files with 885 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# © 2015 Antiun Ingeniería, S.L. - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import main

View file

@ -0,0 +1,11 @@
# 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)