Commit Graph

50 Commits

Author SHA1 Message Date
Oliver Walters bd17458f37 Add metadata endpoints for SalesOrder and PurchaseOrder models 2022-05-16 21:40:10 +10:00
Oliver Walters 37a74dbfef Adds a metadata serializer class for accessing instance metadata via the API
- Adds endpoint for Part
- Adds endpoint for PartCategory
- Adds endpoint for StockItem
- Adds endpoint for StockLocation
2022-05-16 20:59:09 +10:00
Oliver Walters 28b811d961 PEP style fixes 2022-05-16 00:47:00 +10:00
Oliver Walters 097afed78e Adds metadata mixin class for adding JSON field to internal tables
- Add metadata field to stocklocation
- Add metadata field to stockitem
2022-05-16 00:45:16 +10:00
Matthias 47673c293e
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-app-refactor 2022-05-12 23:45:12 +02:00
Oliver a81ea01e8e Model introspection
- Find the class registered to the model (or log an error)
- Pass the api_url through to the frontend
2022-05-12 17:28:55 +10:00
Oliver e112d555d4 Simplify the various settings objects, to improve retrieval of 'parameters' from the base class
- Remove the GenericReferencedSettingsClass mixin
- Each subclass defines a very simple get_kwargs() method
- Now, at object level *and* class level we can perform lookup of settings and actually get proper data back
- Adds "model" option to setting (precursor of things to come)
2022-05-12 16:45:27 +10:00
Matthias f8e51c0873
fix test 2022-05-11 23:21:42 +02:00
Matthias 432a9b2e4d
add warning if plugin testing - is need to probe for 2022-05-11 23:12:21 +02:00
Matthias baca0dc268
do not cover error 2022-05-11 23:05:22 +02:00
Matthias 1571b99ed2
rename IntegrationPluginBase to InvenTreePlugin 2022-05-11 14:28:26 +02:00
Matthias 01e8b5dce3
remove InvenTreePluginBase 2022-05-11 14:21:16 +02:00
Matthias 05d1f9703e
Add nice repr for NotificationUserSetting 2022-05-04 17:42:45 +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 1eb511e8a0
user notification settings 2022-04-04 23:46:19 +02:00
Oliver 5ee9af7f0e Remove old "get_filters" function
- It was confusing!
- Manually filter where required
2022-03-25 14:10:05 +11:00
Matthias 116369bba1
fix indent 2022-01-21 00:31:03 +01:00
Matthias 3d2113d98b
make simpler 2022-01-20 23:53:50 +01:00
Oliver eb21e1f844 Display "boolean" plugin setting values as checkboxes 2022-01-13 16:22:38 +11:00
Matthias 2a7ad93173
move invenTreePlugin to new class
to enable depreceation
2022-01-11 01:41:33 +01:00
Matthias 0b9a6a1123
registry reanme fix 2022-01-11 01:09:04 +01:00
Oliver 928b90a833 Edit plugin settings via the "settings" display 2022-01-04 21:03:01 +11:00
Oliver dc9e25ebad Adds API endpoints for viewing and updating plugin settings
A lot of code updates / refactoring here to get this to work as expected
2022-01-04 20:27:35 +11:00
Oliver 547db3322f Adds new "PluginSetting" class
- Adds settings which are unique to a particular plugin
2022-01-01 22:00:43 +11:00
Oliver 9b468ba92e Second fix for the first fix 2021-12-31 15:20:32 +11:00
Oliver 67d9d9413f Plugin code bug fix
- handle case where self.plugin is None
2021-12-30 22:58:11 +11:00
Matthias 03e5279ec0
PEP fixes 2021-11-21 20:23:43 +01:00
Matthias 211a8e27e6
use pluginreg to reload everywhere 2021-11-21 20:13:58 +01:00
Matthias d17af9eae7
PEP fixes 2021-11-20 21:03:51 +01:00
Matthias 3aa40ce3e9
move settings to registry 2021-11-20 18:01:19 +01:00
Matthias 95fbc27f10
PEP fixes 2021-11-18 01:46:27 +01:00
Matthias 4effd76ca0
spellfix 2021-11-18 01:24:30 +01:00
Matthias 530227e15f
add mixins to API 2021-11-17 23:35:56 +01:00
Matthias b0142de421
adding API endpoints for plugins 2021-11-17 23:16:05 +01:00
Matthias 65764effbb
add verbose names to model 2021-11-16 00:21:03 +01:00
Matthias 35d2259edf
added settings actions 2021-11-16 00:05:53 +01:00
Matthias 84ea56a8f2
docstrings should be manadtory 2021-11-15 02:11:12 +01:00
Matthias 1aafec7107
PEP fixes 2021-11-15 02:10:43 +01:00
Matthias 65ff226b90
remove debug messages 2021-11-15 01:01:01 +01:00
Matthias c059583b08
add live reloading 2021-11-14 22:01:00 +01:00
Matthias 6e34119f85
nicer model name 2021-11-12 02:05:41 +01:00
Matthias 685d3df6d1
Enable / Disable Plugins
Fixes #2292
2021-11-12 00:46:47 +01:00