コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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!

アバター
破棄
最善の回答

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)



アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 19
5288
3
7月 23
27241
2
6月 22
5787
2
9月 21
4744
1
11月 20
8056