Skip to content

Conversation

@pedrobaeza
Copy link
Member

Completes #4112

@Tecnativa TT43606

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
@pedrobaeza
Copy link
Member Author

/ocabot migration delivery

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Apr 1, 2024
The other algorithm is not OK when dealing numeric ranges, as it also
generates the prefixes for the rest of the alphanumeric values, when
it's clear that we are not wanting such cases (although previous
v15 string comparison allowed it without intent).

TT43606
@pedrobaeza pedrobaeza force-pushed the 16.0-ou_add-delivery branch from 62cf11f to 4fc2f4c Compare April 1, 2024 19:05
@pedrobaeza pedrobaeza merged commit 7057299 into OCA:16.0 Apr 1, 2024
@pedrobaeza pedrobaeza deleted the 16.0-ou_add-delivery branch April 1, 2024 20:27
Copy link
Member

@huguesdk huguesdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pedrobaeza i encountered 2 issues with the numerical ranges:

  1. when a numerical zip code starts with a 0 (which exists in some countries), this information is lost.
  2. odoo converts all prefixes to capitals, and the prefixes returned by numerical_range_to_prefixes() sometimes contain r"\d" expressions, which become r"\D" and thus don’t work.

@pedrobaeza
Copy link
Member Author

Well, I haven't been in the need of such conversions for now, so feel free to propose improvements/exceptions on current scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants