Skip to Content
Menu
This question has been flagged

Hi,

I need a means to force user registration / login before a user is able to checkout in the eCommerce module. I've found some entry points on the topic for older Odoo versions but I need a solution for 10.

Help greatly appreciated!

Avatar
Discard
Best Answer

Hi,


Add a controller to change access

from odoo.addons.website_sale.controllers.main import WebsiteSale
from odoo import http

class SaleController(WebsiteSale):
    @http.route(auth='user')
    def checkout(self, **post):
         #the user is logged in to checkout
        return super(SaleController, self).checkout(**post)



Avatar
Discard
Related Posts Replies Views Activity
2
Oct 19
5259
3
Jul 23
27154
2
Jun 22
5763
2
Sep 21
4717
1
Nov 20
8016