mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove unique_together requirement for purchaseorderlineitem
- Allow a single purchase order to specify duplicate lines (e.g. split shipments / order scheduling)
This commit is contained in:
parent
4858787a78
commit
7c82857cc7
@ -0,0 +1,17 @@
|
||||
# Generated by Django 3.2.10 on 2022-02-28 04:27
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('order', '0062_auto_20220228_0321'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name='purchaseorderlineitem',
|
||||
unique_together=set(),
|
||||
),
|
||||
]
|
@ -839,7 +839,6 @@ class PurchaseOrderLineItem(OrderLineItem):
|
||||
|
||||
class Meta:
|
||||
unique_together = (
|
||||
('order', 'part', 'quantity', 'purchase_price')
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
Reference in New Issue
Block a user