mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Fix typos/naming (#4242)
* fix usage of InvenTree name * small typo fix * rename notification plugin all builtins should be named inventree...
This commit is contained in:
@ -692,7 +692,7 @@ class Part(InvenTreeBarcodeMixin, MetadataMixin, MPTTModel):
|
||||
|
||||
@property
|
||||
def full_name(self):
|
||||
"""Format a 'full name' for this Part based on the format PART_NAME_FORMAT defined in Inventree settings.
|
||||
"""Format a 'full name' for this Part based on the format PART_NAME_FORMAT defined in InvenTree settings.
|
||||
|
||||
As a failsafe option, the following is done:
|
||||
|
||||
|
@ -23,7 +23,7 @@ class InvenTreeInternalBarcodePlugin(BarcodeMixin, InvenTreePlugin):
|
||||
"""Builtin BarcodePlugin for matching and generating internal barcodes."""
|
||||
|
||||
NAME = "InvenTreeBarcode"
|
||||
TITLE = _("Inventree Barcodes")
|
||||
TITLE = _("InvenTree Barcodes")
|
||||
DESCRIPTION = _("Provides native support for barcodes")
|
||||
VERSION = "2.0.0"
|
||||
AUTHOR = _("InvenTree contributors")
|
||||
|
@ -22,13 +22,13 @@ class PlgMixin:
|
||||
|
||||
def get_plugin(self):
|
||||
"""Return plugin reference."""
|
||||
return CoreNotificationsPlugin
|
||||
return InvenTreeCoreNotificationsPlugin
|
||||
|
||||
|
||||
class CoreNotificationsPlugin(SettingsContentMixin, SettingsMixin, InvenTreePlugin):
|
||||
class InvenTreeCoreNotificationsPlugin(SettingsContentMixin, SettingsMixin, InvenTreePlugin):
|
||||
"""Core notification methods for InvenTree."""
|
||||
|
||||
NAME = "CoreNotificationsPlugin"
|
||||
NAME = "InvenTreeCoreNotificationsPlugin"
|
||||
TITLE = _("InvenTree Notifications")
|
||||
AUTHOR = _('InvenTree contributors')
|
||||
DESCRIPTION = _('Integrated outgoing notificaton methods')
|
||||
|
@ -5,7 +5,7 @@ from django.core import mail
|
||||
from part.test_part import BaseNotificationIntegrationTest
|
||||
from plugin import registry
|
||||
from plugin.builtin.integration.core_notifications import \
|
||||
CoreNotificationsPlugin
|
||||
InvenTreeCoreNotificationsPlugin
|
||||
from plugin.models import NotificationUserSetting
|
||||
|
||||
|
||||
@ -18,18 +18,18 @@ class CoreNotificationTestTests(BaseNotificationIntegrationTest):
|
||||
self.assertEqual(len(mail.outbox), 0)
|
||||
|
||||
# enable plugin and set mail setting to true
|
||||
plugin = registry.plugins.get('corenotificationsplugin')
|
||||
plugin = registry.plugins.get('inventreecorenotificationsplugin')
|
||||
plugin.set_setting('ENABLE_NOTIFICATION_EMAILS', True)
|
||||
NotificationUserSetting.set_setting(
|
||||
key='NOTIFICATION_METHOD_MAIL',
|
||||
value=True,
|
||||
change_user=self.user,
|
||||
user=self.user,
|
||||
method=CoreNotificationsPlugin.EmailNotification.METHOD_NAME
|
||||
method=InvenTreeCoreNotificationsPlugin.EmailNotification.METHOD_NAME
|
||||
)
|
||||
|
||||
# run through
|
||||
self._notification_run(CoreNotificationsPlugin.EmailNotification)
|
||||
self._notification_run(InvenTreeCoreNotificationsPlugin.EmailNotification)
|
||||
|
||||
# Now one mail should be send
|
||||
self.assertEqual(len(mail.outbox), 1)
|
||||
|
@ -94,7 +94,7 @@ table td.expand {
|
||||
|
||||
{% block header_content %}
|
||||
|
||||
<img class='logo' src='{% logo_image %}' alt="Inventree logo" width='150'>
|
||||
<img class='logo' src='{% logo_image %}' alt="InvenTree logo" width='150'>
|
||||
|
||||
<div class='header-right'>
|
||||
<h3>{% trans "Bill of Materials" %}</h3>
|
||||
|
Reference in New Issue
Block a user