requiere login para realizar el checkout, cogido de OCA/e-commnerce
This commit is contained in:
parent
50f2a6d592
commit
d6de99c5aa
23 changed files with 885 additions and 0 deletions
11
website_sale_require_login/controllers/main.py
Normal file
11
website_sale_require_login/controllers/main.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue