跳至內容
選單
此問題已被標幟
1 回覆
1212 瀏覽次數

I see that in the website module each visitor has their own IDs. Can we obtain that id from the request using things like  request.env['website.visitor']?
Thanks in advanced

頭像
捨棄
最佳答案

In odoo v16:

request.env['website.visitor']._get_visitor_from_request()


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 25
408
5
8月 25
4970
2
8月 25
1619
2
8月 25
816
5
8月 25
10252