Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1432 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

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

Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 19
3729
0
lis 23
1286
1
gru 23
1497
1
cze 22
2720
1
lis 21
4525