Fill out supplier_part details when receiving a line for a purchase order

This commit is contained in:
Oliver Walters 2019-09-08 23:15:44 +10:00
parent 9212d6047f
commit fa8056f4b9
2 changed files with 2 additions and 1 deletions

View File

@ -247,6 +247,7 @@ class PurchaseOrder(Order):
if line.part: if line.part:
stock = StockItem( stock = StockItem(
part=line.part.part, part=line.part.part,
supplier_part=line.part,
location=location, location=location,
quantity=quantity, quantity=quantity,
purchase_order=self) purchase_order=self)

View File

@ -27,7 +27,7 @@ InvenTree | Purchase Orders
$("#po-create").click(function() { $("#po-create").click(function() {
launchModalForm("{% url 'purchase-order-create' %}", launchModalForm("{% url 'purchase-order-create' %}",
{ {
reload: true, follow: true,
} }
); );
}); });