Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7266 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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)



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
oct. 19
5261
3
iul. 23
27157
2
iun. 22
5764
2
sept. 21
4717
1
nov. 20
8019