summaryrefslogtreecommitdiff
path: root/addons/fleet/data/fleet_data.xml
diff options
context:
space:
mode:
authorTiffany Chang (tic) <tic@odoo.com>2020-11-16 15:21:30 +0000
committerTiffany Chang (tic) <tic@odoo.com>2021-01-13 17:01:53 +0000
commitcd81b7accad63ec433ff66e58f286626cfc1ac65 (patch)
treeafe0c6813be79ef69538a28cb99cd54eac513e59 /addons/fleet/data/fleet_data.xml
parent16d81d43ad448b0b8ba2d3567ee18db549338e89 (diff)
[FIX] stock: enforce sn constraint when ml done
Prevent duplicate SN through python constraint (requires SN to be attempted to be created) instead of assigning existing one (and causing a duplication). Steps to reproduce: - create a SN tracked product + activate "storage locations" - assign a SN to tracked product - create a planned receipt for the tracked product and assign same SN (i.e. same name). Warning will pop up about repeat SN, but it is still possible to validate the picking and create a duplicate SN. Also add an extra `limit=1` to lot search for performance/safety. Bug was discovered while working on related task: 1924758 closes odoo/odoo#61801 Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Diffstat (limited to 'addons/fleet/data/fleet_data.xml')
0 files changed, 0 insertions, 0 deletions