mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
1960e662a7
commit
2dae60292e
@ -64,7 +64,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"remoteEnv": {
|
"remoteEnv": {
|
||||||
// Inventree config
|
// InvenTree config
|
||||||
"INVENTREE_DEBUG": "True",
|
"INVENTREE_DEBUG": "True",
|
||||||
"INVENTREE_DEBUG_LEVEL": "INFO",
|
"INVENTREE_DEBUG_LEVEL": "INFO",
|
||||||
"INVENTREE_DB_ENGINE": "sqlite3",
|
"INVENTREE_DB_ENGINE": "sqlite3",
|
||||||
|
@ -8,7 +8,7 @@ cd /workspaces/InvenTree
|
|||||||
python3 -m venv dev/venv
|
python3 -m venv dev/venv
|
||||||
. dev/venv/bin/activate
|
. dev/venv/bin/activate
|
||||||
|
|
||||||
# setup inventree server
|
# setup InvenTree server
|
||||||
pip install invoke
|
pip install invoke
|
||||||
inv update
|
inv update
|
||||||
inv setup-dev
|
inv setup-dev
|
||||||
|
2
.github/actions/migration/action.yaml
vendored
2
.github/actions/migration/action.yaml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: 'Migration test'
|
name: 'Migration test'
|
||||||
description: 'Run migration test sequenze'
|
description: 'Run migration test sequenze'
|
||||||
author: 'inventree'
|
author: 'InvenTree'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
|
2
.github/actions/setup/action.yaml
vendored
2
.github/actions/setup/action.yaml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: 'Setup Enviroment'
|
name: 'Setup Enviroment'
|
||||||
description: 'Setup the enviroment for general InvenTree tests'
|
description: 'Setup the enviroment for general InvenTree tests'
|
||||||
author: 'inventree'
|
author: 'InvenTree'
|
||||||
inputs:
|
inputs:
|
||||||
python:
|
python:
|
||||||
required: false
|
required: false
|
||||||
|
@ -692,7 +692,7 @@ class Part(InvenTreeBarcodeMixin, MetadataMixin, MPTTModel):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def full_name(self):
|
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:
|
As a failsafe option, the following is done:
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class InvenTreeInternalBarcodePlugin(BarcodeMixin, InvenTreePlugin):
|
|||||||
"""Builtin BarcodePlugin for matching and generating internal barcodes."""
|
"""Builtin BarcodePlugin for matching and generating internal barcodes."""
|
||||||
|
|
||||||
NAME = "InvenTreeBarcode"
|
NAME = "InvenTreeBarcode"
|
||||||
TITLE = _("Inventree Barcodes")
|
TITLE = _("InvenTree Barcodes")
|
||||||
DESCRIPTION = _("Provides native support for barcodes")
|
DESCRIPTION = _("Provides native support for barcodes")
|
||||||
VERSION = "2.0.0"
|
VERSION = "2.0.0"
|
||||||
AUTHOR = _("InvenTree contributors")
|
AUTHOR = _("InvenTree contributors")
|
||||||
|
@ -22,13 +22,13 @@ class PlgMixin:
|
|||||||
|
|
||||||
def get_plugin(self):
|
def get_plugin(self):
|
||||||
"""Return plugin reference."""
|
"""Return plugin reference."""
|
||||||
return CoreNotificationsPlugin
|
return InvenTreeCoreNotificationsPlugin
|
||||||
|
|
||||||
|
|
||||||
class CoreNotificationsPlugin(SettingsContentMixin, SettingsMixin, InvenTreePlugin):
|
class InvenTreeCoreNotificationsPlugin(SettingsContentMixin, SettingsMixin, InvenTreePlugin):
|
||||||
"""Core notification methods for InvenTree."""
|
"""Core notification methods for InvenTree."""
|
||||||
|
|
||||||
NAME = "CoreNotificationsPlugin"
|
NAME = "InvenTreeCoreNotificationsPlugin"
|
||||||
TITLE = _("InvenTree Notifications")
|
TITLE = _("InvenTree Notifications")
|
||||||
AUTHOR = _('InvenTree contributors')
|
AUTHOR = _('InvenTree contributors')
|
||||||
DESCRIPTION = _('Integrated outgoing notificaton methods')
|
DESCRIPTION = _('Integrated outgoing notificaton methods')
|
||||||
|
@ -5,7 +5,7 @@ from django.core import mail
|
|||||||
from part.test_part import BaseNotificationIntegrationTest
|
from part.test_part import BaseNotificationIntegrationTest
|
||||||
from plugin import registry
|
from plugin import registry
|
||||||
from plugin.builtin.integration.core_notifications import \
|
from plugin.builtin.integration.core_notifications import \
|
||||||
CoreNotificationsPlugin
|
InvenTreeCoreNotificationsPlugin
|
||||||
from plugin.models import NotificationUserSetting
|
from plugin.models import NotificationUserSetting
|
||||||
|
|
||||||
|
|
||||||
@ -18,18 +18,18 @@ class CoreNotificationTestTests(BaseNotificationIntegrationTest):
|
|||||||
self.assertEqual(len(mail.outbox), 0)
|
self.assertEqual(len(mail.outbox), 0)
|
||||||
|
|
||||||
# enable plugin and set mail setting to true
|
# 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)
|
plugin.set_setting('ENABLE_NOTIFICATION_EMAILS', True)
|
||||||
NotificationUserSetting.set_setting(
|
NotificationUserSetting.set_setting(
|
||||||
key='NOTIFICATION_METHOD_MAIL',
|
key='NOTIFICATION_METHOD_MAIL',
|
||||||
value=True,
|
value=True,
|
||||||
change_user=self.user,
|
change_user=self.user,
|
||||||
user=self.user,
|
user=self.user,
|
||||||
method=CoreNotificationsPlugin.EmailNotification.METHOD_NAME
|
method=InvenTreeCoreNotificationsPlugin.EmailNotification.METHOD_NAME
|
||||||
)
|
)
|
||||||
|
|
||||||
# run through
|
# run through
|
||||||
self._notification_run(CoreNotificationsPlugin.EmailNotification)
|
self._notification_run(InvenTreeCoreNotificationsPlugin.EmailNotification)
|
||||||
|
|
||||||
# Now one mail should be send
|
# Now one mail should be send
|
||||||
self.assertEqual(len(mail.outbox), 1)
|
self.assertEqual(len(mail.outbox), 1)
|
||||||
|
@ -94,7 +94,7 @@ table td.expand {
|
|||||||
|
|
||||||
{% block header_content %}
|
{% 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'>
|
<div class='header-right'>
|
||||||
<h3>{% trans "Bill of Materials" %}</h3>
|
<h3>{% trans "Bill of Materials" %}</h3>
|
||||||
|
@ -16,11 +16,11 @@ Merge the crowdin translation updates into master branch
|
|||||||
|
|
||||||
### Documentation Release
|
### Documentation Release
|
||||||
|
|
||||||
Create new release for the [inventree documentation](https://github.com/inventree/inventree-docs)
|
Create new release for the [InvenTree documentation](https://github.com/inventree/inventree-docs)
|
||||||
|
|
||||||
### Python Library Release
|
### Python Library Release
|
||||||
|
|
||||||
Create new release for the [inventree python library](https://github.com/inventree/inventree-python)
|
Create new release for the [InvenTree python library](https://github.com/inventree/inventree-python)
|
||||||
|
|
||||||
## App Release
|
## App Release
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ function create_initscripts() {
|
|||||||
${INIT_CMD} start nginx
|
${INIT_CMD} start nginx
|
||||||
|
|
||||||
echo "# (Re)creating init scripts"
|
echo "# (Re)creating init scripts"
|
||||||
# This reset scale parameters to a known state
|
# This resets scale parameters to a known state
|
||||||
inventree scale web="1" worker="1"
|
inventree scale web="1" worker="1"
|
||||||
|
|
||||||
echo "# Enabling InvenTree on boot"
|
echo "# Enabling InvenTree on boot"
|
||||||
|
Loading…
Reference in New Issue
Block a user