Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4387 Weergaven

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





Avatar
Annuleer
Auteur Beste antwoord

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

Avatar
Annuleer

Hi!

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

Auteur

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.

Auteur

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

Beste antwoord

Hi,

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

inherit_id="website.assets_frontend"


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 23
7891
0
mei 23
3157
1
jan. 23
7991
2
jan. 23
5293
0
feb. 21
3425