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:
Oliver 2022-02-28 15:27:56 +11:00
parent 4858787a78
commit 7c82857cc7
2 changed files with 17 additions and 1 deletions

View File

@ -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(),
),
]

View File

@ -839,7 +839,6 @@ class PurchaseOrderLineItem(OrderLineItem):
class Meta: class Meta:
unique_together = ( unique_together = (
('order', 'part', 'quantity', 'purchase_price')
) )
@staticmethod @staticmethod