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

[IMP]stock,product_expiry: improve error message for sn number check


=======
PURPOSE
=======

Improve duplicated serial number message to show more information.

=======
SPEC
=======

In this commit, we show full information about all invalide product name
and lot/sn number when the user enters duplicated ones.

- Change the sql constraint for checking duplicate sn/lot to python
constraint to support customised error message.
- Create lot in batch to show all invalide ones in error message.

=======
LINKS
=======

task 2083605
pr #44366

Related: odoo/upgrade#954
Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 41b83e42
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