Commit Graph

116 Commits

Author SHA1 Message Date
Matthias Mair
a77f21b17e
update trnaslation function name to new default (#3497) 2022-08-08 07:50:36 +10:00
Matthias Mair
c81043ba42
[FR] Add unit testing for emails (#3281)
Fixes #2232
2022-07-03 20:38:26 +10:00
Oliver
1e6bdfbcab
Overdue order notification (#3114)
* Adds a background task to notify users when a PurchaseOrder becomes overdue

* Schedule the overdue purchaseorder check to occur daily

* Allow notifications to be sent to "Owner" instances

- Extract user information from the Owner instance

* add unit test to ensure notifications are sent for overdue purchase orders

* Adds notification for overdue sales orders

* Clean up notification display panel

- Simplify rendering
- Order "newest at top"
- Element alignment tweaks

* style fixes

* More style fixes

* Tweak notification padding

* Fix import order

* Adds task to notify user of overdue build orders

* Adds unit tests for build order notifications

* Refactor subject line for emails:

- Use the configured instance title as a prefix for the subject line

* Add email template for overdue build orders

* Fix unit tests to accommodate new default value

* Logic error fix
2022-06-06 19:12:29 +10:00
Matthias Mair
0c97a50e47
Docstring checks in QC checks (#3089)
* Add pre-commit to the stack

* exclude static

* Add locales to excludes

* fix style errors

* rename pipeline steps

* also wait on precommit

* make template matching simpler

* Use the same code for python setup everywhere

* use step and cache for python setup

* move regular settings up into general envs

* just use full update

* Use invoke instead of static references

* make setup actions more similar

* use python3

* refactor names to be similar

* fix runner version

* fix references

* remove incidential change

* use matrix for os

* Github can't do this right now

* ignore docstyle errors

* Add seperate docstring test

* update flake call

* do not fail on docstring

* refactor setup into workflow

* update reference

* switch to action

* resturcture

* add bash statements

* remove os from cache

* update input checks

* make code cleaner

* fix boolean

* no relative paths

* install wheel by python

* switch to install

* revert back to simple wheel

* refactor import export tests

* move setup keys back to not disturbe tests

* remove docstyle till that is fixed

* update references

* continue on error

* add docstring test

* use relativ action references

* Change step / job docstrings

* update to merge

* reformat comments 1

* fix docstrings 2

* fix docstrings 3

* fix docstrings 4

* fix docstrings 5

* fix docstrings 6

* fix docstrings 7

* fix docstrings 8

* fix docstirns 9

* fix docstrings 10

* docstring adjustments

* update the remaining docstrings

* small docstring changes

* fix function name

* update support files for docstrings

* Add missing args to docstrings

* Remove outdated function

* Add docstrings for the 'build' app

* Make API code cleaner

* add more docstrings for plugin app

* Remove dead code for plugin settings
No idea what that was even intended for

* ignore __init__ files for docstrings

* More docstrings

* Update docstrings for the 'part' directory

* Fixes for related_part functionality

* Fix removed stuff from merge 99676ee

* make more consistent

* Show statistics for docstrings

* add more docstrings

* move specific register statements to make them clearer to understant

* More docstrings for common

* and more docstrings

* and more

* simpler call

* docstrings for notifications

* docstrings for common/tests

* Add docs for common/models

* Revert "move specific register statements to make them clearer to understant"

This reverts commit ca96654622.

* use typing here

* Revert "Make API code cleaner"

This reverts commit 24fb68bd3e.

* docstring updates for the 'users' app

* Add generic Meta info to simple Meta classes

* remove unneeded unique_together statements

* More simple metas

* Remove unnecessary format specifier

* Remove extra json format specifiers

* Add docstrings for the 'plugin' app

* Docstrings for the 'label' app

* Add missing docstrings for the 'report' app

* Fix build test regression

* Fix top-level files

* docstrings for InvenTree/InvenTree

* reduce unneeded code

* add docstrings

* and more docstrings

* more docstrings

* more docstrings for stock

* more docstrings

* docstrings for order/views

* Docstrings for various files in the 'order' app

* Docstrings for order/test_api.py

* Docstrings for order/serializers.py

* Docstrings for order/admin.py

* More docstrings for the order app

* Add docstrings for the 'company' app

* Add unit tests for rebuilding the reference fields

* Prune out some more dead code

* remove more dead code

Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2022-06-02 01:37:39 +10:00
Matthias Mair
5805685c48 Merge branch 'master' of https://github.com/inventree/InvenTree into style-fixes 2022-05-21 23:57:41 +02:00
Matthias Mair
22adc37242 fix import 2022-05-21 02:40:45 +02:00
Matthias Mair
e1ff4b6e87 more class use 2022-05-20 23:01:20 +02:00
Matthias Mair
e1d22f538d resort imports 2022-05-20 17:24:51 +02:00
Oliver
9bcbaaa5f5 Remove more python2 stuff 2022-05-17 16:57:31 +10:00
Matthias
74a3abc4a2
make args wider 2022-05-15 23:26:46 +02:00
Matthias
9c342e1fe3
fix definition 2022-05-15 20:06:07 +02:00
Matthias
cced30c081
pass through request data 2022-05-15 18:41:39 +02:00
Matthias
1782974df8
replace depreceated values everywhere 2022-05-11 16:46:03 +02:00
Matthias
1571b99ed2
rename IntegrationPluginBase to InvenTreePlugin 2022-05-11 14:28:26 +02:00
Matthias
05839ca94c
remove legacy action 2022-05-11 14:20:05 +02:00
Matthias
0d89959d49
move action 2022-05-11 12:38:14 +02:00
Matthias
308dd53c35
rename tests 2022-05-11 12:37:22 +02:00
Matthias
b030c42480
move inegration mixins 2022-05-11 12:36:54 +02:00
Matthias
b28f71374e
move barcodes 2022-05-11 12:35:42 +02:00
Matthias
3c9e4e7eab
make imports easier 2022-05-11 12:17:46 +02:00
Matthias
b7087b83b5
Merge branch 'master' of https://github.com/inventree/InvenTree into add-report-check 2022-05-11 04:19:18 +02:00
Matthias
9a69f125a9
move barcodes to plugin 2022-05-11 04:08:13 +02:00
Oliver Walters
e57a3870c6 Fix build index template 2022-05-07 22:47:48 +10:00
Oliver Walters
9f15dd8e2a Custom panels can now be rendered from a template 2022-05-07 22:32:26 +10:00
Oliver Walters
5ed0128435 PEP style fixes 2022-05-06 23:34:34 +10:00
Oliver Walters
12c58b14d6 Improvements for panel mixin sample 2022-05-06 23:19:47 +10:00
Oliver Walters
7b8a10173d Adds a new "Panel" mixin which can render custom panels on given pages
- Adds item to sidebar menu
- Adds panel content
- Runs custom javascript when the page is loaded
2022-05-06 22:49:51 +10:00
Oliver Walters
28e16616e5 Adds a PanelMixin plugin mixin class
Intended to allow rendering of custom panels on pages
2022-05-06 21:32:11 +10:00
Matthias Mair
cf93ba7cf9
Merge branch 'inventree:master' into matmair/issue2385 2022-05-04 12:23:05 +02:00
Matthias
5e277130fa
do not cover not implemented Mixin 2022-05-03 23:07:16 +02:00
Matthias
08e278232b
ignore db not ready in coverage 2022-05-03 22:12:34 +02:00
Matthias
b9cbc287f2
empty mixin schaffold - no tests 2022-05-03 22:10:26 +02:00
Matthias
0a012c3c58
only possible in test cases with plugin_tests off 2022-05-03 22:09:58 +02:00
Matthias
4663815cfa
this is just an extra safety check - should not trigger 2022-05-03 22:09:20 +02:00
Matthias
4e5015e742
do not cover unready db 2022-05-03 22:08:57 +02:00
Matthias
05d2d3664c
ignore defaults for coverage 2022-05-03 20:13:07 +02:00
Matthias Mair
4125803e6d
Merge branch 'inventree:master' into matmair/issue2385 2022-05-02 21:50:52 +02:00
Matthias
67ab45bdee
update depreciated paths 2022-05-01 22:00:18 +02:00
Matthias Mair
37e74074dd
Merge branch 'inventree:master' into matmair/issue2385 2022-04-27 17:46:57 +02:00
Matthias
1603bf4e60
fix api call 2022-04-26 01:32:31 +02:00
Matthias
4c1a0ea9ce
mkae user setting access simpler 2022-04-06 23:58:11 +02:00
Matthias Mair
547c51b81b
pep fix 2022-04-06 01:47:11 +02:00
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
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