Commit 994b0fa
committed
[IMP] base_import_module: provide full traceback if error arises
Before this commit, when an error happens during the import of a data
module, the UserError was displaying the last part of the traceback. In
some cases, it was sufficient (missing manifest, unknown dependency,
...). But in other cases, this was only displaying the record triggering
the error, but not more, giving no clue on what was the exact error and
how to fix it.
This commit adapts the UserError to provide the full traceback in the
popup window, such that the user can understand or at least report the
error.
Another task is targeting master to improve the design of this window.
task-4876416
closes odoo#233237
X-original-commit: 65873de
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>1 parent bb5b7cf commit 994b0fa
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | | - | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
0 commit comments