odoo/upgrade-util#312
Created by Devangi Prajapati (depr)
Merged
at cc87c6d2159d6621c35a3184f665fcfb73632014
Statuses:
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- label
- odoo-dev:master-make_name_argument_optional-depr
- head
- d20f366b8d83b5415a5c84515ad991077ebebdf1
- merged
- 3 months ago by Upgrade, Christophe Simonis (chs)
| odoo/upgrade-util | |
|---|---|
| master | #312 |
[FIX] util/report: Make 'name' argument optional
This commit 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.