Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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?

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
2
maj 19
4300
3
cze 19
4466
1
lis 16
5521
0
kwi 15
4139
1
kwi 23
4250