2a02fbf8b0a635617c80dd306bdb94e1ee8bd29a
Current behaviour: When creating a new record with a many2many widget, in the modal window, any modification done after record creation (for example clicking on the status bar buttons) aren't being saved once we "Save & Close" the modal window. Expected behaviour: All changes should be saved, regardless if we clicked the status button that trigger *some* action. Steps to reproduce: - Install Project - Settings > Sub-tasks or Task Dependencies - In a task on a project, add a subtask > New - Set the title to "Title 1" > Change the stage > Set the title to "Title 2" > Save & Close - Observe the title of the task is "Title 1", not "Title 2". Reason for the problem: When we click on a status button, since it can trigger *some* action in the backend, it forces the creation of the record front-end side, which generates a `resId`. Upon saving & closing the modal window, the record is not saved, only it's resId is appended to the list of `many2many` records. Fix: Before appending the record to the list, we save the record if it's dirty. Affected versions: - 16.0 - saas-16.1 - saas-16.2 - saas-16.3 - master opw-3289908 closes odoo/odoo#127009 X-original-commit: 29aeafda0f75764ec5b30147fec422b47a4da164 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Piryns Victor (pivi) <pivi@odoo.com>
…
…
…
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
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%