Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1451 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
нояб. 19
3758
0
нояб. 23
1306
1
дек. 23
1574
1
июн. 22
2752
1
нояб. 21
4527