fa036650c24572886c85f5e9a87871129b2cad6f
How to reproduce: 1: create two employees (A B) and two departments (C D) 2: Assign A as manager of C and B as manager of D 3: Assign C as A's department and A as A's manager 4: Change A's department to D -> A is deleted This is due to `parent_id` being both a computed field and the source field for a One2many. By changing the `department_id` the `parent_id` also changed which results in it being report in the `onchange` method. For some reason however the command sent by the orm is not `UNLINK` but `DELETE` which results in the `active_id` being deleted. TaskId-2711428 closes odoo/odoo#81153 X-original-commit: 3ec9dcc59b133bd1f5e100bd4d950e9ba87a3890 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: William Braeckman (wbr) <wbr@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%