Skip to content
Snippets Groups Projects
user avatar
imanie383 authored
A default MAX(id) was added in the extraDomain when there are no messages
to create it. This validation already existed but was omitted in the
refactoring - https://github.com/odoo/odoo/pull/57061

Current behavior before PR:

If there are no messageIds, the method loadNewMessages returns id > null
and this domain returns 0 records

https://github.com/odoo/odoo/blob/7d992af9561c499ef1912453f3b697bad18e441f/addons/mail/static/src/models/thread_cache/thread_cache.js#L55



Desired behavior after PR is merged:

Create the extraDomain with a default MAX(id) when there are no messages
to create it and continue with the normal flow of loadMessages

closes odoo/odoo#91610

Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
d97f775c
History

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials