Commit Graph
100 Commits
Author SHA1 Message Date
OliverandGitHub 05142d977a Merge pull request #1684 from SchrodingersGat/rebuild-command
Adds a management command to rebuild MPTT models
2021-06-18 22:08:43 +10:00
Oliver 9a4ccedf5c Adds a management command to rebuild MPTT models
- Important to do after importing records / fixtures!
- Otherwise very strange things might happen especially when you try to use the API...
2021-06-18 21:53:15 +10:00
OliverandGitHub e36414b312 Merge pull request #1316 from SchrodingersGat/part-allocation-display
Part allocation display
2021-06-18 20:10:28 +10:00
Oliver e68a4abdf2 Error: wrong error 2021-06-18 19:51:54 +10:00
Oliver 3fb57abe66 Error catching 2021-06-18 19:39:06 +10:00
Oliver 34c34487b5 PEP style fix 2021-06-18 19:21:46 +10:00
Oliver 778aa0314d Load and display build order allocation items via AJAX 2021-06-18 19:18:35 +10:00
Oliver 245c9bfd28 Enhancement for the BuildItem API / serializer
- Add optional "part_detail" information
- Add optional "build_detail" information
- Add optional "location_detail" information
2021-06-18 19:08:54 +10:00
Oliver 10ecddf9b4 Fixes after rebase 2021-06-18 17:25:24 +10:00
Oliver Walters 0b8a50cd92 Add 'location_detail' filter 2021-06-18 16:51:34 +10:00
Oliver Walters caf52c6ce5 Add optional detail elements to SOAllocation API 2021-06-18 16:49:56 +10:00
Oliver Walters ad8dbb5900 Add API LIST endpoint for SalesOrderAllocations 2021-06-18 16:48:32 +10:00
OliverandGitHub 43478a0be7 Merge pull request #1634 from matmair/internal-price
Internal price
2021-06-18 10:36:29 +10:00
OliverandGitHub bb910a09fb Merge pull request #1679 from matmair/fix-for-1678
fix for part with no bom-price
2021-06-18 10:35:59 +10:00
OliverandGitHub b6e3df4e6b Merge pull request #1680 from matmair/modal-options
more modal options
2021-06-18 10:30:18 +10:00
OliverandGitHub 9991f4a694 Merge pull request #1681 from matmair/more-templatetags
More templatetags
2021-06-18 08:18:40 +10:00
OliverandGitHub bc46cca9f0 Merge pull request #1677 from SchrodingersGat/new-typo-fix
Typo fix for excluded commands
2021-06-17 22:37:45 +10:00
OliverandGitHub 8766c80233 Merge pull request #1645 from matmair/pricing-reformat
Pricing reformat
2021-06-17 22:36:07 +10:00
Oliver Walters f6241031f6 Typo fix for excluded commands
(cherry picked from commit cf7087747b)
2021-06-17 22:21:26 +10:00
OliverandGitHub 93e83d0bf9 Merge pull request #1587 from nwns/feature/see_default_location
feat(purchase orders): show the preferred location for each PO Line
2021-06-17 17:01:05 +10:00
OliverGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
b2975596dc L10 (#1668)
* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* updated translation base

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-06-17 09:11:04 +10:00
OliverandGitHub 45eb2f6f26 Merge pull request #1669 from matmair/so-total
So total
2021-06-17 09:10:57 +10:00
OliverandGitHub 5bbc44e816 Merge pull request #1666 from matmair/po-total
total price column as per #1660
2021-06-17 08:38:51 +10:00
OliverandGitHub 9386332de1 Update version.py 2021-06-16 23:54:42 +10:00
OliverandGitHub 731ea0238e Update version.py
Bump version number
2021-06-16 23:53:58 +10:00
OliverandGitHub b2247b3830 Merge pull request #1664 from SchrodingersGat/docker-production
Docker production
2021-06-16 23:52:52 +10:00
Oliver Walters 8e9bf2aadd Fix typo in docker-compose.yml 2021-06-16 23:31:36 +10:00
Oliver Walters 513449e13c Whoops, missed one 2021-06-16 23:03:38 +10:00
Oliver Walters 725d26d76f Fix default paths in InvenTree settings 2021-06-16 23:03:09 +10:00
Oliver Walters d85b906560 Fix comment in docker-compose.yml file 2021-06-16 22:57:31 +10:00
Oliver Walters 7dd63b36da Simplify dockerfile / docker-compose
- Single data volume now also includes 'static' files
- InvenTree source repo is now cloned into /home/inventree (to match the "dev" image)
2021-06-16 22:36:05 +10:00
Oliver Walters acd7322ff0 Files under /media require session to be authenticated
References:

- https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/apache-auth/
- https://stackoverflow.com/questions/46421589/nginx-location-and-django-auth
- https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-subrequest-authentication/
- https://pawamoy.github.io/posts/django-auth-server-for-shiny/
2021-06-16 21:30:25 +10:00
Oliver Walters 058fc57ff1 Serve media files via nginx 2021-06-16 20:57:24 +10:00
Oliver Walters 0821ead024 Only provide static redirects if in DEBUG mode 2021-06-15 23:51:37 +10:00
Oliver Walters 632ea593fe Fix default port association 2021-06-15 23:40:50 +10:00
Oliver Walters 8bfdb0bec6 Comment fix 2021-06-15 23:19:50 +10:00
Oliver Walters 01328075ea All "development" related stuff now goes under ./dev
- Update dev-config.env
- Update docker-compose.dev.yml
- Development target of Dockerfile no longer creates any folders
- Update entry point scripts
2021-06-15 23:05:03 +10:00
OliverandGitHub 8da00c6106 Merge pull request #1662 from eeintech/fix-1661
Add "Purchase Price" to stock table
2021-06-15 07:20:03 +10:00
OliverandGitHub 8e6691ce36 Merge pull request #1658 from matmair/fix-whitespace-paths
fix whitespaces in paths
2021-06-14 21:39:51 +10:00
OliverandGitHub 2e1db9d0bc Merge pull request #1653 from matmair/display-serial
display latest serial on all part-views #1648
2021-06-12 08:01:34 +10:00
OliverandGitHub deb8f0df2a Merge pull request #1652 from inventree/dependabot/pip/django-3.2.4
Build(deps): Bump django from 3.2.2 to 3.2.4
2021-06-11 08:15:41 +10:00
OliverandGitHub 3a91156b01 Merge pull request #1651 from inventree/dependabot/pip/django-3.2.2
Build(deps): Bump django from 3.2.1 to 3.2.2
2021-06-10 11:05:47 +10:00
OliverandGitHub 0076c0cec5 Merge pull request #1649 from SchrodingersGat/typo-fix
Fix typo in getStockItemThumbnail
2021-06-09 11:54:50 +10:00
OliverandGitHub fb52115fe3 Merge pull request #1646 from inventree/dependabot/pip/pillow-8.2.0
Build(deps): Bump pillow from 8.1.1 to 8.2.0
2021-06-09 11:47:03 +10:00
Oliver 0c14457598 Fix typo in getStockItemThumbnail 2021-06-09 11:16:37 +10:00
OliverandGitHub 120c371a11 Merge pull request #1647 from SchrodingersGat/thumbnail-error-catch
BuildItemSerializer: Handle errors when thumbnail is not found
2021-06-09 10:02:42 +10:00
Oliver 9fd212d1b2 BuildItemSerializer: Handle errors when thumbnail is not found 2021-06-09 09:41:27 +10:00
OliverandGitHub fd63e49e60 Merge pull request #1644 from SchrodingersGat/test-table-fix
Stock Test: Fix display of stock test table
2021-06-08 20:27:06 +10:00
Oliver 3aadf94a9c Stock Test: Fix display of stock test table
- Incorrect parent node was set
2021-06-08 16:15:40 +10:00
OliverandGitHub 534fd491c1 Merge pull request #1637 from SchrodingersGat/lib-update
Update django-import-export to 2.5.0
2021-06-07 00:30:03 +10:00
OliverandGitHub d2e35426c2 Merge pull request #1636 from SchrodingersGat/l10-merge
L10 merge
2021-06-07 00:13:18 +10:00
Oliver 172700da10 Update django-import-export to 2.5.0
- Fixes an export error introduced after updating to latest django
2021-06-07 00:12:52 +10:00
Oliver 5377d860f4 Merge remote-tracking branch 'inventree/master' into l10-merge
# Conflicts:
#	InvenTree/locale/de/LC_MESSAGES/django.po
#	InvenTree/locale/en/LC_MESSAGES/django.po
#	InvenTree/locale/es/LC_MESSAGES/django.po
#	InvenTree/locale/fr/LC_MESSAGES/django.po
#	InvenTree/locale/it/LC_MESSAGES/django.po
#	InvenTree/locale/ja/LC_MESSAGES/django.po
#	InvenTree/locale/pl/LC_MESSAGES/django.po
#	InvenTree/locale/ru/LC_MESSAGES/django.po
#	InvenTree/locale/tr/LC_MESSAGES/django.po
#	InvenTree/locale/zh/LC_MESSAGES/django.po
2021-06-06 22:27:27 +10:00
OliverandGitHub 62682c686b Merge pull request #1629 from inventree/l10_crowdin
New Crowdin updates
2021-06-06 22:21:35 +10:00
OliverandGitHub e977be9c1b Merge pull request #1630 from inventree/dependabot/pip/django-3.2.1
Bump django from 3.2 to 3.2.1
2021-06-06 22:20:47 +10:00
OliverandGitHub 573f601752 Merge pull request #1632 from matmair/nav-style
same nav sidebar distance for everything
2021-06-06 22:14:20 +10:00
OliverandGitHub 8301eb3be3 Merge pull request #1633 from matmair/money-format
Money format
2021-06-06 22:12:55 +10:00
Oliver 3e9adec4ff Fix: New translations django.po from Crowdin 2021-06-04 03:03:42 +10:00
Oliver 6f3593220a Fix: New translations django.po from Crowdin 2021-06-04 02:08:23 +10:00
Oliver f0a1cca914 Fix: New translations django.po from Crowdin 2021-06-03 14:40:53 +10:00
Oliver 4af74a5ba5 Fix: New translations django.po from Crowdin 2021-06-03 09:52:21 +10:00
OliverandGitHub 92f77b6bbb Merge pull request #1627 from eeintech/price_break_sort_fix
Fixed price break row actions after sorting
2021-06-03 09:18:49 +10:00
Oliver 2948cf5671 Fix: New translations django.po from Crowdin 2021-06-03 05:11:59 +10:00
Oliver 3b6aba7153 Fix: New translations django.po from Crowdin 2021-06-03 04:12:58 +10:00
Oliver 69ed180034 Fix: New translations django.po from Crowdin 2021-06-03 03:15:00 +10:00
Oliver 7b1bd87d84 Merge remote-tracking branch 'inventree/l10_crowdin' into l10
# Conflicts:
#	InvenTree/locale/de/LC_MESSAGES/django.po
#	InvenTree/locale/es/LC_MESSAGES/django.po
#	InvenTree/locale/fr/LC_MESSAGES/django.po
#	InvenTree/locale/it/LC_MESSAGES/django.po
#	InvenTree/locale/ja/LC_MESSAGES/django.po
#	InvenTree/locale/pl/LC_MESSAGES/django.po
#	InvenTree/locale/ru/LC_MESSAGES/django.po
#	InvenTree/locale/tr/LC_MESSAGES/django.po
#	InvenTree/locale/zh/LC_MESSAGES/django.po
2021-06-02 22:58:34 +10:00
Oliver 7df72f09f4 Fix: New translations django.po from Crowdin 2021-06-02 09:57:53 +10:00
Oliver 56afcfa91f Fix: New translations django.po from Crowdin 2021-06-02 08:50:33 +10:00
Oliver 61af4ca1b3 Fix: New translations django.po from Crowdin 2021-06-01 20:22:45 +10:00
Oliver ddf1f5c5ba Fix: New translations django.po from Crowdin 2021-06-01 20:22:43 +10:00
Oliver 1a3943fd7c Fix: New translations django.po from Crowdin 2021-06-01 20:22:42 +10:00
Oliver 3df5ef5676 Fix: New translations django.po from Crowdin 2021-06-01 20:22:40 +10:00
Oliver 235b2632ed Fix: New translations django.po from Crowdin 2021-06-01 20:22:39 +10:00
Oliver a4d63ad9b0 Fix: New translations django.po from Crowdin 2021-06-01 20:22:37 +10:00
Oliver 85a0cd84d4 Fix: New translations django.po from Crowdin 2021-06-01 20:22:36 +10:00
Oliver feb1b47f93 Fix: New translations django.po from Crowdin 2021-06-01 20:22:34 +10:00
Oliver f9b5f78716 Fix: New translations django.po from Crowdin 2021-06-01 20:22:33 +10:00
OliverandGitHub 720184790e Merge pull request #1626 from SchrodingersGat/bom-allow-variants
[Feature] Support BOM items which can allow use of variant stock
2021-06-01 20:07:03 +10:00
Oliver Walters b31796cbeb Simplified "installed_in" table 2021-06-01 16:40:02 +10:00
Oliver Walters ee9df039cb allocatedItems function now takes variants into account 2021-06-01 16:19:24 +10:00
Oliver Walters 9baf856d75 Fixes for build item allocation rendering 2021-06-01 16:14:26 +10:00
Oliver Walters ab16e1efc3 Custom migration to find BomItem / BuildItem links where they exist 2021-06-01 15:39:21 +10:00
Oliver Walters 7578cab9a8 Add 'bom_item' field to BuildItem model
- Required to link the build to the output in case of variant stock
2021-06-01 15:25:39 +10:00
Oliver Walters 9f407df15a Update BOM table display 2021-06-01 14:17:31 +10:00
Oliver Walters 0bd0e57f16 BomList can be filtered by "allow_variants" flag 2021-06-01 14:03:21 +10:00
Oliver Walters 5c71f04360 Add "allow_variants" field to BomItem 2021-06-01 13:59:01 +10:00
Oliver bd83888717 Fix: New translations django.po from Crowdin 2021-06-01 10:20:41 +10:00
Oliver beae6c55e8 Fix: New translations django.po from Crowdin 2021-06-01 09:15:10 +10:00
Oliver f0354a90fe Fix: New translations django.po from Crowdin 2021-06-01 09:15:09 +10:00
Oliver cc2192aed5 Fix: New translations django.po from Crowdin 2021-06-01 09:15:08 +10:00
Oliver 96f6152f91 Fix: New translations django.po from Crowdin 2021-06-01 09:15:06 +10:00
Oliver 9ceb6353c8 Fix: New translations django.po from Crowdin 2021-06-01 09:15:05 +10:00
Oliver 49abacdc86 Fix: New translations django.po from Crowdin 2021-06-01 09:15:04 +10:00
Oliver 9dceba77bc Fix: New translations django.po from Crowdin 2021-06-01 09:15:03 +10:00
Oliver 416e69bdc5 Fix: New translations django.po from Crowdin 2021-06-01 09:15:02 +10:00
Oliver c2fb582a4e Fix: New translations django.po from Crowdin 2021-06-01 09:15:00 +10:00
OliverandGitHub 96624d1175 Merge pull request #1625 from SchrodingersGat/parent-node-fixes
Specify a unique parent node that cannot shadow an existing pk
2021-06-01 08:48:57 +10:00
Oliver Walters 0375d5b940 Specify a unique parent node that cannot shadow an existing pk 2021-06-01 08:30:50 +10:00
Oliver ba1d283e64 Fix: New translations django.po from Crowdin 2021-06-01 08:16:19 +10:00
Oliver 76059a4694 Fix: New translations django.po from Crowdin 2021-05-31 17:32:26 +10:00