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

Hello,

I want to check for user email before sign up, I am just doing a simple rpc query to a function in models ( not controllers) to retrieve and see all the existing users. but Odoo blocks me with the popup on the right. Any idea about that ? Thanks





아바타
취소
작성자 베스트 답변

Thanks dude, actually i was missing a sudo(), that's it :)

아바타
취소

Hi!

Where did you put your sudo() ? In your JS file ?

작성자

Hi Renaud, sorry cannot respond due to karma I think.

Sudo is performed in python file (models or controllers) in my case, it was in models, something like that: '...sudo().search[()]'.

BTW, you cannot do sudo in js.

작성자

It's the other way :) "..sudo().search([])"

베스트 답변

Hi,

Please check if template in which your js file is defined has inherit_id as

inherit_id="website.assets_frontend"


아바타
취소
관련 게시물 답글 화면 활동
1
5월 23
7888
0
5월 23
3151
1
1월 23
7971
2
1월 23
5277
0
2월 21
3417