跳至內容
選單
此問題已被標幟

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
4309
3
6月 19
4469
1
11月 16
5540
0
4月 15
4149
1
4月 23
4276