From 017c73a3f06b5570c7bcdee6d47747fe81dfeb16 Mon Sep 17 00:00:00 2001 From: Juho Kettunen Date: Wed, 20 Nov 2024 14:48:08 +0200 Subject: [PATCH] Reset changes in service unit model, to avoid migration --- ...iceunit_use_rent_override_receivable_type.py | 11 ++--------- leasing/models/service_unit.py | 17 +++++++++-------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/leasing/migrations/0081_serviceunit_use_rent_override_receivable_type.py b/leasing/migrations/0081_serviceunit_use_rent_override_receivable_type.py index ee8732cf..550050ea 100644 --- a/leasing/migrations/0081_serviceunit_use_rent_override_receivable_type.py +++ b/leasing/migrations/0081_serviceunit_use_rent_override_receivable_type.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.14 on 2024-11-20 11:01 +# Generated by Django 4.2.14 on 2024-11-20 12:46 from django.db import migrations, models @@ -15,14 +15,7 @@ class Migration(migrations.Migration): name="use_rent_override_receivable_type", field=models.BooleanField( default=False, - help_text="Use the override receivable type from rent in " - "automatic invoices, if it is present. When creating a rent, some " - "service units (such as AKV and KuVa) want to select a receivable " - "type to be used in future automatic invoices. This helps avoid " - "some technical difficulties in invoice XML generation. " - "Generation logic would otherwise be unaware of the desired " - "receivable type, if it is different from the service unit's " - "default receivable type, or the leasetype's receivable type.", + help_text="Use the override receivable type from rent in automatic invoices, if it is present. When creating a rent, some service units (such as AKV and KuVa) want to select a receivable type to be used in future automatic invoices. This helps avoid some technical difficulties in invoice XML generation. Generation logic would otherwise be unaware of the desired receivable type, if it is different from the service unit's default receivable type, or the leasetype's receivable type.", verbose_name="Use the override receivable type from rent in automatic invoices?", ), ), diff --git a/leasing/models/service_unit.py b/leasing/models/service_unit.py index 5f6df1ef..00808ca6 100644 --- a/leasing/models/service_unit.py +++ b/leasing/models/service_unit.py @@ -72,16 +72,17 @@ class ServiceUnit(TimeStampedSafeDeleteModel): ) use_rent_override_receivable_type = models.BooleanField( verbose_name=_( - "Use the override receivabletype from rent in automatic invoices?" + "Use the override receivable type from rent in automatic invoices?" ), help_text=_( - "Use the override receivable type from rent in automatic invoices, if " - "it is present. When creating a rent, some service units (such as AKV " - "and KuVa) want to select a receivable type to be used in future " - "automatic invoices. This helps avoid some technical difficulties in " - "invoice XML generation. Generation logic would otherwise be unaware " - "of the desired receivable type, if it is different from the service " - "unit's default receivable type, or the leasetype's receivable type." + "Use the override receivable type from rent in " + "automatic invoices, if it is present. When creating a rent, some " + "service units (such as AKV and KuVa) want to select a receivable " + "type to be used in future automatic invoices. This helps avoid " + "some technical difficulties in invoice XML generation. " + "Generation logic would otherwise be unaware of the desired " + "receivable type, if it is different from the service unit's " + "default receivable type, or the leasetype's receivable type." ), default=False, )