From acec4fa5d5164cef5e87dd7c7fc168b4dee627d4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 6 Mar 2022 18:43:27 +0100 Subject: [PATCH] remove titile --- InvenTree/order/admin.py | 1 - ...remove_salesorderadditionallineitem_title.py | 17 +++++++++++++++++ InvenTree/order/models.py | 2 -- InvenTree/order/serializers.py | 1 - 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 InvenTree/order/migrations/0066_remove_salesorderadditionallineitem_title.py diff --git a/InvenTree/order/admin.py b/InvenTree/order/admin.py index 7dff5d84bb..3ab6383554 100644 --- a/InvenTree/order/admin.py +++ b/InvenTree/order/admin.py @@ -170,7 +170,6 @@ class SalesOrderAdditionalLineItemAdmin(ImportExportModelAdmin): list_display = ( 'order', - 'title', 'quantity', 'reference' ) diff --git a/InvenTree/order/migrations/0066_remove_salesorderadditionallineitem_title.py b/InvenTree/order/migrations/0066_remove_salesorderadditionallineitem_title.py new file mode 100644 index 0000000000..aa76f54b49 --- /dev/null +++ b/InvenTree/order/migrations/0066_remove_salesorderadditionallineitem_title.py @@ -0,0 +1,17 @@ +# Generated by Django 3.2.12 on 2022-03-06 01:19 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('order', '0065_auto_20220305_2209'), + ] + + operations = [ + migrations.RemoveField( + model_name='salesorderadditionallineitem', + name='title', + ), + ] diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index d5ad3aceb8..4a1147c890 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -1178,8 +1178,6 @@ class SalesOrderAdditionalLineItem(OrderLineItem): order = models.ForeignKey(SalesOrder, on_delete=models.CASCADE, related_name='additional_lines', verbose_name=_('Order'), help_text=_('Sales Order')) - title = models.CharField(verbose_name=_('title'), help_text=_('titel of the additional line'), max_length=250) - sale_price = InvenTreeModelMoneyField( max_digits=19, decimal_places=4, diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index 8bc359377f..529897d942 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -1135,7 +1135,6 @@ class SOAdditionalLineItemSerializer(InvenTreeModelSerializer): 'notes', 'order', 'order_detail', - 'title', 'sale_price', 'sale_price_currency', 'sale_price_string',