Skip to content
Snippets Groups Projects
Commit 697399be authored by yhu-odoo's avatar yhu-odoo
Browse files

[FIX] mrp: duplicate lot when auto-generate serial


Previous commit 1b840d06 tried to fix
the issue action_generate_serial may try to generate a existing lot.
But it made the lot number completely product specific. This change is
too big for stable, we revert the change in this commit.

Also to fix the issue, when action_generate_serial tries to generate a
lot, we always try the result from ir.sequence frist, only when the lot
already exists, we then try create one based on the product's lastest
lot number.

Task-3187003

closes odoo/odoo#120581

Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
parent 1c10ab5c
No related branches found
No related tags found
No related merge requests found
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