Fix for stock status change (#5105)

- Recent refactor introduced bug
- Update stock.js
This commit is contained in:
Oliver 2023-06-26 12:14:44 +10:00 committed by GitHub
parent 256c9cb751
commit 8b6abe1505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3169,7 +3169,11 @@ function setStockStatus(items, options={}) {
note: {},
},
processBeforeUpload: function(data) {
data.items = items;
let item_pk_values = [];
items.forEach(function(item) {
item_pk_values.push(item.pk);
});
data.items = item_pk_values;
return data;
},
onSuccess: function() {