Matthias Mair
b087422290
add import back in
2022-04-06 01:45:19 +02:00
Matthias Mair
b53bf6de9c
pep fix
2022-04-06 01:42:24 +02:00
Matthias
b4654a7c71
add tests for email notification
2022-04-06 01:22:52 +02:00
Matthias
5f4c8b3a3e
add icon support for user settings
2022-04-05 01:53:41 +02:00
Matthias
41ccacaa05
disable email by default
2022-04-05 00:56:13 +02:00
Matthias
01fcc728ad
PEP fixes
2022-04-05 00:34:30 +02:00
Matthias
dc7b88515e
rename class to make it clearer
2022-04-05 00:27:13 +02:00
Matthias
2728bfab37
fix: add genericSettingClassMixin back in
2022-04-05 00:25:39 +02:00
Matthias
d634afad48
move to common/models
2022-04-05 00:24:55 +02:00
Matthias
352ab34eda
remove struc docstring
2022-04-05 00:23:30 +02:00
Matthias
586812e5c6
add doc for generic mixin
2022-04-05 00:23:09 +02:00
Matthias
23f57bec19
some docs for future users :-)
2022-04-05 00:15:22 +02:00
Matthias
205916e0b2
refactor clean method to reduce duplication
2022-04-05 00:14:39 +02:00
Matthias
8d01df0b5e
refactor settings to reduce duplication
2022-04-05 00:08:07 +02:00
Matthias
bdc62dfcc3
mark active sample code as a sample
2022-04-04 23:53:35 +02:00
Matthias
138aebdb08
and another one
2022-04-04 23:52:00 +02:00
Matthias
e3ca478042
PEP fix
2022-04-04 23:51:51 +02:00
Matthias
1eb511e8a0
user notification settings
2022-04-04 23:46:19 +02:00
Matthias
926f56bb41
move plugins checks to method
2022-04-02 04:11:29 +02:00
Matthias
6a300ea24a
fix global settings check
2022-04-02 03:32:27 +02:00
Matthias
6124b1207d
make setting global
2022-04-02 03:16:14 +02:00
Matthias
c7329da7e0
move settings
2022-04-02 03:03:41 +02:00
Matthias
279be87448
Move email notification method into plugin
...
Fixes #2385
2022-04-02 02:46:41 +02:00
Oliver Walters
e18493a397
Supply label width and height to the label printing plugin
2022-03-26 13:43:48 +11:00
Oliver Walters
3e484317d2
Register notification against the plugin class, not the particular label
2022-03-25 23:49:15 +11:00
Oliver
6e30ec5603
PEP fix
2022-03-25 16:42:20 +11:00
Oliver
052d9770ce
Override view permissions for plugin list API
...
- It is necessary for *any* logged in user to view this endpoint
- This is how the user determines which plugins are available (e.g. for label printing!)
2022-03-25 16:39:43 +11:00
Oliver
9046c74628
Only send printing failed as a UI notification
2022-03-25 16:05:35 +11:00
Oliver
c1b408f8a3
Send notification if printing fails
...
If label printing fails (due to a plugin error) then the user is notified.
2022-03-25 15:57:32 +11:00
Oliver
5ee9af7f0e
Remove old "get_filters" function
...
- It was confusing!
- Manually filter where required
2022-03-25 14:10:05 +11:00
Oliver
fcdd1eb55b
Remove old function call
2022-03-24 16:18:50 +11:00
Oliver
efc6af5f4c
PEP fixes
2022-03-24 16:18:08 +11:00
Oliver
6c25a5805d
Allow offloading of label printing to the configured plugin
2022-03-24 14:57:01 +11:00
Oliver
86b5655c5f
Simplify new plugin class
2022-03-24 13:15:57 +11:00
Oliver
4e041e97b9
Catch potential IntegrityError when importing plugins
2022-03-24 13:00:03 +11:00
Oliver
69e9d1625a
Adds a LabelPrintingMixin plugin class
...
- Enables the implementation of custom label printing plugins
- Will be available directly from the "print labels" dialog box
2022-03-24 12:51:27 +11:00
Oliver
c082cec3ee
Merge pull request #2748 from matmair/matmair/issue2524
...
Run plugin install on startup
2022-03-21 07:15:37 +11:00
Matthias
eef51600c5
do not write to db
2022-03-20 18:10:42 +01:00
Matthias
494c4ed03d
only raise if integrity error
2022-03-18 23:58:17 +01:00
Matthias
e53e428a32
remove unneeded print
2022-03-18 23:50:13 +01:00
Matthias Mair
0cd8aae250
raise blocker again
2022-03-18 07:50:02 +01:00
Matthias Mair
a1791645fa
just raise
2022-03-18 02:19:32 +01:00
Matthias
d32952fe23
add another debug message
2022-03-18 01:43:42 +01:00
Matthias
a06844d7e9
add additional debug messges
2022-03-18 00:46:37 +01:00
Matthias
3606bd8fe4
add try to settings test
2022-03-16 17:03:04 +01:00
Matthias Mair
57df39086c
Merge branch 'inventree:master' into fix-set_user
2022-03-16 15:16:26 +01:00
Matthias Mair
91464ad3d0
Merge branch 'inventree:master' into matmair/issue2524
2022-03-16 15:15:27 +01:00
Matthias
8f10ef817c
add setting for reload
2022-03-16 14:47:27 +01:00
Matthias
51860a4e7b
run with u flag
2022-03-15 01:33:01 +01:00
Matthias
5f9a549918
docs
2022-03-15 01:27:14 +01:00