Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4399 Представления

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"


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мая 23
7908
0
мая 23
3166
1
янв. 23
7998
2
янв. 23
5303
0
февр. 21
3429