[FIX] auth_signup: add missing dependency on the computation of the signup validity

The field signup_valid is a non stored computed field based on signup_token.
The cache is filled with prefetched values, so in a loop the field is read from
the cache and not recomputed due to the missing dependency.

opw 1843442
This commit is contained in:
len-odoo
2018-05-16 09:01:14 +02:00
committed by len-odoo
parent 13fc77daf4
commit 47cc4fbbab
+1
View File
@@ -33,6 +33,7 @@ class ResPartner(models.Model):
signup_url = fields.Char(compute='_compute_signup_url', string='Signup URL')
@api.multi
@api.depends('signup_token', 'signup_expiration')
def _compute_signup_valid(self):
dt = now()
for partner in self: