Skip to content

Conversation

@AaronHForgeFlow
Copy link

No description provided.

@AaronHForgeFlow AaronHForgeFlow force-pushed the 13.0-fix-sale_mrp-bom-selection-fix branch from a44b896 to ca9c4f6 Compare August 1, 2023 10:36
MiquelRForgeFlow pushed a commit that referenced this pull request Jan 20, 2026
**Steps to reproduce:**
- Go to the sequence interface, and chose the config #1 for a pos.order
- In the prefix field, enter something with characters that are not numbers
- Go to a PoS with config #1 active and make a purchase
- A traceback appears saying that we can't convert the sequence to an Integer

**Why the fix:**
Having a custom prefix with letters used to work, but in version
19, we now store the sequence_number with the prefix, which can
be composed of characters which can not be stored in an Integer field
such as sequence_number.

To prevent this error, we remove the prefix and the suffix (which
has the same issue) from the sequence_number before storing it.
We then add the prefix and the suffix back when computing the
order's name, so that it's consistant with the prefix and the
suffix the user chose.

This is the way the order's name was computed before version 19.0,
which saw the prefix and suffix disappear from the order's name.

opw-5386575

closes odoo#244366

X-original-commit: 67fc637
Signed-off-by: Adrien Guilliams (adgu) <[email protected]>
Signed-off-by: Arthur Nanson (artn) <[email protected]>
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.

2 participants