Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1491 Переглядів

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
3773
0
лист. 23
1316
1
груд. 23
1591
1
черв. 22
2773
1
лист. 21
4539