diff options
| author | Achraf (abz) <abz@odoo.com> | 2021-04-08 05:27:35 +0000 |
|---|---|---|
| committer | Achraf (abz) <abz@odoo.com> | 2021-04-09 05:00:55 +0000 |
| commit | 675feb254ed3448571818a77c920012cbd066c8b (patch) | |
| tree | d1ab594101b1600b5eea5bb83bc97b87fb300b27 /odoo/modules/loading.py | |
| parent | f83f523b00e62bb0aec65f6676ef24d585aa8a1d (diff) | |
[FIX] base: Traceback with address layout in reports
What are the steps to reproduce your issue ?
1. Go to Contacts > Configuration > Localization > Countries > Select a country
2. Edit the 'Layout in reports' (enable debug mode) and add an invalid field
3. Create a Quotation and search for a customer from the country you edited.
What is currently happening ?
Traceback is raised and you can't select the customer anymore
Why is this happening ?
Because the key is not defined.
How to fix the bug ?
Handle KeyError to detect if the user put an undefined key
Handle ValueError to detect if the user put an invalid format key
opw-2447078
closes odoo/odoo#68974
X-original-commit: 7d6529fa91062393a257ffbf01c4fd09e2f128bd
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
Diffstat (limited to 'odoo/modules/loading.py')
0 files changed, 0 insertions, 0 deletions
