Remove "default_supplier" field when duplicating a part

This commit is contained in:
Oliver committed 2021-09-24 12:04:36 +10:00
1 parent d2b9993e96
commit f53aac0784
1 file changed
+3
@@ -346,6 +346,9 @@ function duplicatePart(pk, options={}) {
duplicate: pk,
});
// Remove "default_supplier" field
delete fields['default_supplier'];
// If we are making a "variant" part
if (options.variant) {