2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-09 20:21:24 +00:00

Bug fix for order-parts form

- Check for parts already existing in PO must filter by the purchase order ID in addition to the part ID
This commit is contained in:
Oliver Walters
2019-09-13 15:32:52 +10:00
parent c34f6d9268
commit 17e91493ea
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ Django views for interacting with Order app
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import transaction
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext as _
from django.views.generic import DetailView, ListView
@@ -557,6 +558,7 @@ class OrderParts(AjaxView):
return self.renderJsonResponse(self.request, data=data)
@transaction.atomic
def order_items(self):
""" Add the selected items to the purchase orders. """