mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 09:46:31 +00:00
Peppy fixes
This commit is contained in:
@@ -112,7 +112,8 @@ class PurchaseOrder(Order):
|
|||||||
help_text=_('Company')
|
help_text=_('Company')
|
||||||
)
|
)
|
||||||
|
|
||||||
received_by = models.ForeignKey(User,
|
received_by = models.ForeignKey(
|
||||||
|
User,
|
||||||
on_delete=models.SET_NULL,
|
on_delete=models.SET_NULL,
|
||||||
blank=True, null=True,
|
blank=True, null=True,
|
||||||
related_name='+'
|
related_name='+'
|
||||||
@@ -242,7 +243,6 @@ class PurchaseOrder(Order):
|
|||||||
po=str(self))
|
po=str(self))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Update the number of parts received against the particular line item
|
# Update the number of parts received against the particular line item
|
||||||
line.received += quantity
|
line.received += quantity
|
||||||
line.save()
|
line.save()
|
||||||
|
@@ -5,7 +5,6 @@ Django views for interacting with Order app
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import transaction
|
|
||||||
from django.shortcuts import get_object_or_404
|
from django.shortcuts import get_object_or_404
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
from django.views.generic import DetailView, ListView
|
from django.views.generic import DetailView, ListView
|
||||||
|
Reference in New Issue
Block a user