콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1570 화면

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

아바타
취소
관련 게시물 답글 화면 활동
0
11월 19
3902
0
11월 23
1407
1
12월 23
1722
1
6월 22
2831
1
11월 21
4574