odoo/odoo#162421

Created by fw-bot
Merged at 1e99ad4393b7a7eba6946b29bc3d5d9c2c1822b7

Statuses:

label
odoo-dev:saas-16.3-16.0-digest_user-nim-xzS7-fw
head
340728a9ece34c9064236bd3a144175133df58ec
merged
1 year ago by Infra, Nicolas Martinelli (nim)
odoo/odoo
16.0 #162230
saas-16.3 #162421
saas-16.4 #162434
17.0 #162563
saas-17.1 #162572
saas-17.2 #162586
saas-17.4
18.0
saas-18.1
saas-18.2
saas-18.3
master #162612

[FW][FIX] digest: do not write on default digest if not necessary

When a portal user is created (e.g. through the auth_signup module),
an unnecessary write is done on the write_date of the default digest.
This write is unnecessary since a portal user is never subscribed to
the default digest.

In case of a high signup frequency, it can cause concurrent transaction
errors.

We avoid writing if no internal user is being created.

Forward-Port-Of: #162230