Commit 715d65a
committed
[FIX] util/fields: ensure path update for ir_exports_line
Issue: When exporting data using the existing export
template, a traceback error occurs.
Cause: When a field is renamed, the path in `ir_exports_line`
is not updated if it contains `.ids`. This happens because
the resolve_model_fields_path fails to retrieve the field
https://github.com/odoo/upgrade-util/blob/b7fbb070807f8393a0b5dbac274e1651d32b309d/src/util/helpers.py#L284-L319
record from `ir_model_fields` where the field name is `.id`,
which leads to failing this condition because of the difference
in length of old and new path
https://github.com/odoo/upgrade-util/blob/b7fbb070807f8393a0b5dbac274e1651d32b309d/src/util/fields.py#L1026
closes #133
Signed-off-by: Christophe Simonis (chs) <[email protected]>1 parent 77db562 commit 715d65a
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| |||
438 | 439 | | |
439 | 440 | | |
440 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
441 | 445 | | |
442 | 446 | | |
443 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1091 | 1095 | | |
1092 | 1096 | | |
1093 | 1097 | | |
1094 | 1098 | | |
1095 | 1099 | | |
1096 | 1100 | | |
1097 | 1101 | | |
| 1102 | + | |
| 1103 | + | |
1098 | 1104 | | |
1099 | 1105 | | |
1100 | 1106 | | |
| |||
0 commit comments