Skip to content
Snippets Groups Projects
Commit 47cc4fbb authored by len-odoo's avatar len-odoo Committed by len-odoo
Browse files

[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
parent 13fc77da
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment