コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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?

アバター
破棄

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

関連投稿 返信 ビュー 活動
2
5月 19
4301
3
6月 19
4468
1
11月 16
5528
0
4月 15
4148
1
4月 23
4269