Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet

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
Verwerfen

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Mai 19
4301
3
Juni 19
4467
1
Nov. 16
5528
0
Apr. 15
4148
1
Apr. 23
4269