2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Improve wording for "Inherited" option of BOM items (#4376) (#4397)

* improve wording for "Inherited" option of BOM items (#4376)

* add migrations
This commit is contained in:
simonkuehling
2023-02-23 20:58:54 +01:00
committed by GitHub
parent 89ac0a623b
commit efb55c720f
7 changed files with 39 additions and 13 deletions

View File

@ -1634,7 +1634,7 @@ class BomFilter(rest_filters.FilterSet):
# Boolean filters for BOM item
optional = rest_filters.BooleanFilter(label='BOM item is optional')
consumable = rest_filters.BooleanFilter(label='BOM item is consumable')
inherited = rest_filters.BooleanFilter(label='BOM item is inherited')
inherited = rest_filters.BooleanFilter(label='BOM item gets inherited')
allow_variants = rest_filters.BooleanFilter(label='Variants are allowed')
# Filters for linked 'part'

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.18 on 2023-02-23 11:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('part', '0098_auto_20230214_1115'),
]
operations = [
migrations.AlterField(
model_name='bomitem',
name='inherited',
field=models.BooleanField(default=False, help_text='This BOM item is inherited by BOMs for variant parts', verbose_name='Gets inherited'),
),
]

View File

@ -3512,7 +3512,7 @@ class BomItem(DataImportMixin, models.Model):
inherited = models.BooleanField(
default=False,
verbose_name=_('Inherited'),
verbose_name=_('Gets inherited'),
help_text=_('This BOM item is inherited by BOMs for variant parts'),
)

View File

@ -54,7 +54,7 @@
<th>{% trans "Reference" %}</th>
<th>{% trans "Overage" %}</th>
<th>{% trans "Allow Variants" %}</th>
<th>{% trans "Inherited" %}</th>
<th>{% trans "Gets inherited" %}</th>
<th>{% trans "Optional" %}</th>
<th>{% trans "Note" %}</th>
<th><!-- Buttons Column --></th>