Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1446 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

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

Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
nov. 19
3756
0
nov. 23
1300
1
dec. 23
1562
1
iun. 22
2751
1
nov. 21
4526