Skip to content
Snippets Groups Projects
Commit 89318db5 authored by Josse Colpaert's avatar Josse Colpaert
Browse files

[FIX] l10n_pe: street_name and street had wrong edit/read only class


Before, if you would put Peru Street 23, it would put Peru in House number.
This is because the editable field was the street field, so behind the scenes,
Odoo will split it and according to the standard format without country,
this means Peru will go into House.

We tried first with a change inversing it, but as we are doing the change,
the best thing is to remove the split all together.  We added also onchange
logic that if you put a district it would automatically put the right city.

City or city_id should depend on the country and is correctly inherited by a
fields_view_get.

Task 2724531

closes odoo/odoo#84710

X-original-commit: d4ad1abb
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent cb9f4bfc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment