diff options
| author | Denis Ledoux <dle@odoo.com> | 2020-06-24 08:37:37 +0000 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2020-06-24 10:25:41 +0000 |
| commit | c219727974558f0656a4e16c186c9b05d9f2581b (patch) | |
| tree | 45905774b7d4bd5549e7a22a0887207f3d04ec6e /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 63cbe8678a35ddfbdeed731b1da28fa5a3b71173 (diff) | |
[FIX] base: prevent loop in module categories `Administration` during upgrades
Revision 07631a51858830cf9dd7f06e9c3ac2576efa559b
inverts the parent/children relationship of the module categories
`module_category_administration`
and
`module_category_administration_administration`,
by swaping the `parent_id`.
During an upgrade, e.g. from 12.0 to 13.0,
as the `parent_id` node has been removed from the category
`module_category_administration` in the data xml file,
the field `parent_id` of the category was left untouched,
therefore leaving the former parent,
creating a recursion between the two categories.
```sql
select id,name,parent_id from ir_module_category where name ilike 'administration';
id | name | parent_id
----+----------------+-----------
79 | Administration | 78
78 | Administration | 79
```
closes odoo/odoo#53568
X-original-commit: e4bc0a6c6b1181b7c723df415c75f6983ff91927
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
