Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1456 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

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

Thanks

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
nov 19
3761
0
nov 23
1308
1
dic 23
1578
1
giu 22
2758
1
nov 21
4527