2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-29 17:43:55 +00:00

Fix typos identified by translators (#11157)

* Fix typos identified by translators

* bump api version

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver
2026-01-18 10:45:46 +11:00
committed by GitHub
parent 75121c068e
commit 56719655b3
13 changed files with 18 additions and 15 deletions

View File

@@ -1,11 +1,14 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 441
INVENTREE_API_VERSION = 442
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v442 -> 2026-01-17 : https://github.com/inventree/InvenTree/pull/11157
- Typo fixes, no functional changes
v441 -> 2026-01-17 : https://github.com/inventree/InvenTree/pull/11153
- Allow export of supplier part pricing data

View File

@@ -34,7 +34,7 @@ class Migration(migrations.Migration):
('reference', models.CharField(blank=True, help_text='Line item reference', max_length=100, verbose_name='Reference')),
('notes', models.CharField(blank=True, help_text='Line item notes', max_length=500, verbose_name='Notes')),
('target_date', models.DateField(blank=True, help_text='Target date for this line item (leave blank to use the target date from the order)', null=True, verbose_name='Target Date')),
('received_date', models.DateField(blank=True, help_text='The date this this return item was received', null=True, verbose_name='Received Date')),
('received_date', models.DateField(blank=True, help_text='The date this return item was received', null=True, verbose_name='Received Date')),
('outcome', models.PositiveIntegerField(choices=[(10, 'Pending'), (20, 'Return'), (30, 'Repair'), (50, 'Refund'), (40, 'Replace'), (60, 'Reject')], default=10, help_text='Outcome for this line item', verbose_name='Outcome')),
('price_currency', djmoney.models.fields.CurrencyField(choices=[], default='', editable=False, max_length=3)),
('price', InvenTree.fields.InvenTreeModelMoneyField(blank=True, currency_choices=[], decimal_places=6, default_currency='', help_text='Cost associated with return or repair for this line item', max_digits=19, null=True, validators=[djmoney.models.validators.MinMoneyValidator(0)], verbose_name='Price')),

View File

@@ -3022,7 +3022,7 @@ class ReturnOrderLineItem(StatusCodeMixin, OrderLineItem):
null=True,
blank=True,
verbose_name=_('Received Date'),
help_text=_('The date this this return item was received'),
help_text=_('The date this return item was received'),
)
@property

View File

@@ -128,7 +128,7 @@ class InvenTreeSlackNotifications(NotificationMixin, SettingsMixin, InvenTreePlu
SETTINGS = {
'NOTIFICATION_SLACK_URL': {
'name': _('Slack incoming webhook url'),
'name': _('Slack incoming webhook URL'),
'description': _('URL that is used to send messages to a slack channel'),
'protected': True,
}

View File

@@ -16,7 +16,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('key', models.CharField(help_text='Key of plugin', max_length=255, unique=True, verbose_name='Key')),
('name', models.CharField(blank=True, help_text='PluginName of the plugin', max_length=255, null=True, verbose_name='Name')),
('name', models.CharField(blank=True, help_text='Name of the plugin', max_length=255, null=True, verbose_name='Name')),
('active', models.BooleanField(default=False, help_text='Is the plugin active', verbose_name='Active')),
],
),

View File

@@ -24,7 +24,7 @@ class PluginConfig(InvenTree.models.MetadataMixin, models.Model):
Attributes:
key: slug of the plugin (this must be unique across all installed plugins!)
name: PluginName of the plugin - serves for a manual double check if the right plugin is used
name: Name of the plugin - serves for a manual double check if the right plugin is used
active: Should the plugin be loaded?
"""
@@ -52,7 +52,7 @@ class PluginConfig(InvenTree.models.MetadataMixin, models.Model):
blank=True,
max_length=255,
verbose_name=_('Name'),
help_text=_('PluginName of the plugin'),
help_text=_('Name of the plugin'),
)
package_name = models.CharField(

View File

@@ -149,7 +149,7 @@ class PluginConfigInstallSerializer(serializers.Serializer):
if not data.get('confirm'):
raise ValidationError({'confirm': _('Installation not confirmed')})
if (not data.get('url')) and (not data.get('packagename')):
msg = _('Either packagename of URL must be provided')
msg = _('Either packagename or URL must be provided')
raise ValidationError({'url': msg, 'packagename': msg})
return data

View File

@@ -17,7 +17,7 @@ class PluginDetailAPITest(PluginMixin, InvenTreeAPITestCase):
def setUp(self):
"""Setup for all tests."""
self.MSG_NO_PKG = 'Either packagename of URL must be provided'
self.MSG_NO_PKG = 'Either packagename or URL must be provided'
self.PKG_NAME = 'inventree-brother-plugin'
self.PKG_URL = 'git+https://github.com/inventree/inventree-brother-plugin'