97dbdc418d3c93d8d4c77b37068de4cbf31aa759
Since saas-11.4 the subtype dropdown don't keep changes of subtype. Before saas-11.4 the update was relying on the fact that the follower id changes on each subtype edition. This is no longer the case. The test is addapted to remove the hack simulating this behaviour. The read_followers route is not called if no there is no changes in the follower ids https://github.com/odoo/odoo/blob/905e01921f3c3ef43ace6fc537d1d8c0d280002c/addons/mail/static/src/js/followers.js#L195 Leading to the follower list not being update Note that the subtype update in dropdown was working fine after adding a new follower: the read_followers will return a None as suptype when called for a list of partner not containing the current user. Since the subtypes was falsy, the render was not rendering the dropdown again, keeping the value of the checkboxes. We can still create some inconsistency by editing the subtype from the follower list. To avoid that a check is made when updating subtypes after calling read_followers. The chosen solution here is to keep the update on subtypes in memory. This will avoid a call on read_followers to fetch information that we already know, using the assumption that the operation was successfull whish should be the case when a user edit subtypes on a record he has access to. Others solutions: -force the call to read_followers with the current user, maybe by removing it from this.follower after editing subtypes. -call read_subscription_data explicitely Obviously follower.js should be refactored to fix this a better way. Task: #1886982 PR: #27093
…
…
…
…
…
…
…
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%