Add 'new location' button when receiving parts by individual line

This commit is contained in:
Oliver Walters 2019-12-05 09:12:37 +11:00
parent 4b599b7cdb
commit 3f172cb065

View File

@ -202,7 +202,15 @@ $("#po-lines-table").on('click', ".line-receive", function() {
reload: true,
data: {
line: button.attr('pk')
}
},
secondary: [
{
field: 'location',
label: 'New Location',
title: 'Create new stock location',
url: "{% url 'stock-location-create' %}",
},
]
});
});