diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-11-18 11:57:30 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-11-19 10:14:07 +0000 |
| commit | 5aa873f4a260b3cbcbd137637d319100202e13e8 (patch) | |
| tree | 811cf5ab8bdf35c11784a375c210067ae0cd8f99 | |
| parent | 2776209ba9a437c413dd5670c1695a06da909a5a (diff) | |
[CHG] base_import: increase recursion limit to 3
As part of QoL PR #26267 the way the recursion limit was
managed (where it is checked) was changed, effectively decreasing the
recursion limit by 1 (to the originally expected limit of 2).
According to #29877 this is an inconvenient change / regression in
e.g. accounting context: if an object has journal entries, updating a
field of a journal item requires 3 levels of indirection (entries ->
items -> field). The same would occur if an object is e.g. linked to
multiple projects (projects -> tasks -> field) or SO (-> lines ->
field).
Therefore bump the recursion limit up to 3.
Closes #29877
closes odoo/odoo#61990
X-original-commit: 64ff41ce805c72eb700b45d55adfc7379de56862
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
| -rw-r--r-- | addons/base_import/models/base_import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_import/models/base_import.py b/addons/base_import/models/base_import.py index 2642127454a..266280ff77a 100644 --- a/addons/base_import/models/base_import.py +++ b/addons/base_import/models/base_import.py @@ -26,7 +26,7 @@ from odoo.tools.translate import _ from odoo.tools.mimetypes import guess_mimetype from odoo.tools import config, DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, pycompat -FIELDS_RECURSION_LIMIT = 2 +FIELDS_RECURSION_LIMIT = 3 ERROR_PREVIEW_BYTES = 200 DEFAULT_IMAGE_TIMEOUT = 3 DEFAULT_IMAGE_MAXBYTES = 10 * 1024 * 1024 |
