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

I have a weird case where some users (A) that are part of the group Administration : settings can't see the password link reset that regular users (B) receive via email. With some digging i found that is because when I access the user (B) form with the user (A) it see the field signup_valid (defined in the module auth_signup) as false, but viewing the same user (B) form with the administrator account, it is correctly set to true.

signup_valid is a computed field with this compute function:

@api.multi

@api.depends('signup_token', 'signup_expiration')
def _compute_signup_valid(self):
dt = now()
for partner, partner_sudo in pycompat.izip(self, self.sudo()):
partner.signup_valid = bool(partner_sudo.signup_token) and \
(not partner_sudo.signup_expiration or dt <= partner_sudo.signup_expiration)


Both signup_token and signup_expiration seems correct, so the only things that I could see going wrong would be that partner_sudo.signup_token and partner_sudo.signup_expiration are returning something different than the non sudo self. Any idea where to look at?

Avatar
Annuleer

i have the same issue but with (dont have an account ?) while sign up 

if its still happening could you create a ticket here with detailed steps to reproduce it: https://github.com/odoo/odoo/issues

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 19
4301
3
jun. 19
4467
1
nov. 16
5528
0
apr. 15
4148
1
apr. 23
4269