跳至内容
菜单
此问题已终结
1 回复
1494 查看

The following code is designed to make something happen when I on the website view. It changes the prices of the products. 

The problem is that It worked fine until v16, where it still works when I go to the shop and click on the product, but it does not work when I just go to the shop (see all products on the website).

    def get_combination_info_website(self):
if self.env.context.get('website_id'):

Any ideas on how to properly tell Odoo to identify that I am inside the website shop page?

形象
丢弃
最佳答案

Hi,

Can you access request.website and see if it helps.

Thanks

形象
丢弃
相关帖文 回复 查看 活动
0
11月 19
3775
0
11月 23
1317
1
12月 23
1592
1
6月 22
2774
1
11月 21
4539