Skip to Content
Menu
You need to be registered to interact with the community.
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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
okt. 19
5273
3
jul. 23
27205
2
jun. 22
5781
2
sep. 21
4732
1
nov. 20
8044