Skip to Content
मेन्यू
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
अक्तू॰ 19
5265
3
जुल॰ 23
27165
2
जून 22
5765
2
सित॰ 21
4717
1
नव॰ 20
8019