Commit 64b5b31
committed
[FIX] util/report: Make 'name' argument optional
This [commit](odoo#215)
ensure that if the name argument is not provided, it will
automatically generate a default value for name based on the model and id.
When we call method get_anchor_link_to_record without name, it fails with
```
TypeError: get_anchor_link_to_record() missing 1 required positional argument: 'name'
```
Updated get_anchor_link_to_record to default 'name' to None if not provided.
Also added a check to ensure 'id' is not a tuple before proceeding with its
[use](https://github.com/odoo/upgrade-util/blob/master/src/util/report.py#L328-L330).1 parent 9b2e0ac commit 64b5b31
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
0 commit comments