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

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()


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
8月 25
411
5
8月 25
9965
2
7月 25
1025
4
6月 25
1166
1
6月 25
1479