Skip to content
Snippets Groups Projects
Commit eb67feb5 authored by Raphael Collet's avatar Raphael Collet
Browse files

[FIX] *: cache consistency


In module mail, invalidating 'message_ids' on a mail thread also
invalidates its inverse field 'res_id' on messages.  If you haven't
flushed it before, your cache will be inconsistent, as shown by the test
/mail:TestMailgateway.test_message_process_bounce_records_channel.

In module purchase_stock, add depends on report.stock.quantity.  This
ensures that when the model is queried after changes in other models,
the data on which the SQL view depends is flushed to the database before
querying that model's table.

closes odoo/odoo#66938

Related: odoo/enterprise#16722
Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
Co-authored-by: default avatarVincent Schippefilt <vsc@odoo.com>
parent 9c3b9a49
No related branches found
No related tags found
No related merge requests found
Showing
with 75 additions and 43 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment