İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1435 Görünümler

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?

Avatar
Vazgeç
En İyi Yanıt

Hi,

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

Thanks

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Kas 19
3731
0
Kas 23
1287
1
Ara 23
1507
1
Haz 22
2723
1
Kas 21
4525