You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where there's no cleaning if no country code is found on the VAT.
I think we should normalize the VAT input to be homogeneous (with the country code), the same we do with the phone numbers, or if not, we may have a contact with 05680675C and another ES05680675C, and not being detected as duplicated VAT number.
The text was updated successfully, but these errors were encountered:
@pedrobaeza Sorry for the late answer. I agree VAT check could be improved. We discussed it with @tsb-odoo , and added your feedback to the list of things to consider when improving that :) It will be for master, though, as we don't want to break any flow depending on the current behavior (even if it's not perfect).
Yeah, I suppose that this kind of thing is not the best for stable versions, but at least if you include it on master is a great thing for homogenizing this and not having more side effects.
Impacted versions: 13.0
Steps to reproduce:
05680675-C
Current behavior:
The VAT is validated, but stored as is (
05680675-C
).Expected behavior:
The VAT is validated, and stored as
05680675C
, or even better, stored asES05680675C
.The explanation is in this line of code:
odoo/addons/base_vat/models/res_partner.py
Line 502 in a93a0a3
where there's no cleaning if no country code is found on the VAT.
I think we should normalize the VAT input to be homogeneous (with the country code), the same we do with the phone numbers, or if not, we may have a contact with
05680675C
and anotherES05680675C
, and not being detected as duplicated VAT number.The text was updated successfully, but these errors were encountered: