Skip to Content
Menú
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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
2
d’oct. 19
5299
3
de jul. 23
27277
2
de juny 22
5812
2
de set. 21
4782
1
de nov. 20
8076