Oliver Walters
ef902fc313
Add bom_items to build order report context
2021-02-17 23:27:09 +11:00
Oliver Walters
bb3440a8a4
Refactor bom item filter
...
- Also updates a number of part functions to make use of inherited BOM items
2021-02-17 22:53:56 +11:00
Oliver Walters
1eb2456e3d
Display inherited rows a bit differenter
2021-02-17 22:25:43 +11:00
Oliver Walters
5b402b6bc0
BOM table formatting
...
- Display link to external BOM
- Prevent item from being edited to selected
2021-02-17 22:18:32 +11:00
Oliver Walters
43eba3f7ec
Add ability to include bom items inherited from parent parts in the API list
2021-02-17 22:05:17 +11:00
Oliver Walters
40d75090a7
Add 'inherited' flag to API
2021-02-17 21:53:26 +11:00
Oliver Walters
d692c18274
Add 'inherited' field to BomItem
2021-02-17 21:53:15 +11:00
Oliver Walters
afc33c59ea
bug fix
2021-02-17 14:13:56 +11:00
Oliver Walters
08cc866e74
Add function to make barcode for build order
2021-02-17 13:47:14 +11:00
Oliver Walters
98bd7dfa9a
Style fixes
2021-02-17 13:16:15 +11:00
Oliver Walters
fcc35f2260
Fix display of parts currently being built
2021-02-17 13:14:27 +11:00
Oliver Walters
ba542dcbdb
Auto-fill build quantity
2021-02-17 13:06:18 +11:00
Oliver Walters
c8650ce34c
Bug fix for tables
2021-02-17 13:05:58 +11:00
Oliver Walters
8780b8435a
style fix
2021-02-17 12:46:05 +11:00
Oliver Walters
34df19242c
Adds more context data
2021-02-17 11:08:11 +11:00
Oliver Walters
28c9c80f54
Calculate quantity required for sales orders
...
- Cache data going to part detail view
2021-02-17 10:57:17 +11:00
Oliver Walters
cda97829ab
Add function for required build order quantity
2021-02-17 10:27:36 +11:00
Oliver Walters
baa352ca98
Add message if username / password combo is rejected
2021-02-16 22:34:24 +11:00
Oliver
a444f21e64
Merge pull request #1292 from SchrodingersGat/bom-report
...
BOM report
2021-02-16 21:32:28 +11:00
Oliver Walters
6b48f0db43
Unit test fixes
2021-02-16 20:56:18 +11:00
Oliver Walters
7071ef5a5c
Fixes for build report template
2021-02-16 20:53:28 +11:00
Oliver Walters
7d30e75bc6
Display images in report debug mode
2021-02-16 20:40:09 +11:00
Oliver Walters
46f20593c5
Add default build order report
...
Toot toot refactor tractor
2021-02-16 20:39:07 +11:00
Oliver Walters
f87b15e4ea
Refactoring
2021-02-16 20:14:13 +11:00
Oliver Walters
b09e9c0781
Fixes for URL generation
2021-02-16 17:16:36 +11:00
Oliver Walters
fdca3d842d
Add report function for generating an internal link
2021-02-16 16:45:13 +11:00
Oliver Walters
81cac0927d
Layout tweask
2021-02-16 16:04:24 +11:00
Oliver Walters
a416c56e5a
pre-fill 'issued_by' user
2021-02-16 15:55:09 +11:00
Oliver Walters
a722057dab
Display responsible and issuing users for build orders
2021-02-16 15:46:18 +11:00
Oliver Walters
31a8c94d2f
Adds 'issued_by' and 'responsible' field to BuildOrder
...
- issued_by is a user
- responsible is a user or a group
2021-02-16 15:40:27 +11:00
Oliver Walters
6cc0880b4a
Add INVENTREE_BASE_URL setting
...
- Also adds callable validator!
2021-02-16 15:31:04 +11:00
Oliver Walters
247c4bdb4b
Print multiple build reports
2021-02-16 08:45:28 +11:00
Oliver Walters
b222119653
Add option to print build report
2021-02-16 08:36:04 +11:00
Oliver Walters
e72aaf2e07
PEP fixes
2021-02-16 08:25:52 +11:00
Oliver Walters
a349e77866
Adds model for BuildReport
...
- List / Detail / Print
2021-02-16 08:25:04 +11:00
Oliver Walters
e0db833038
Rotated splash image for better handling of portrait view
2021-02-13 16:50:51 +11:00
Oliver Walters
39d9ecffec
Add image attribution (need to work out how to make it more obvious)
2021-02-13 13:52:35 +11:00
Oliver Walters
99578e6986
Getting a little bit fancy
2021-02-13 13:49:21 +11:00
Oliver Walters
10e50cf5e4
Allow access to static files without being logged in
2021-02-13 12:19:10 +11:00
Oliver
998620b5f3
Merge pull request #1290 from SchrodingersGat/modal-css-fixes
...
Modal form CSS fixes
2021-02-12 21:32:46 +11:00
Oliver
16692a2905
Merge pull request #1288 from SchrodingersGat/part-table-fix
...
Remove code which was causing issue
2021-02-12 21:32:40 +11:00
Oliver Walters
e8fd336612
Fix getSubdir function
2021-02-12 21:32:26 +11:00
Oliver Walters
11099676ef
Dialog for printing BOM reports
2021-02-12 21:23:56 +11:00
Oliver Walters
4e9b9ee6fd
Detail and print view for the BOM report
2021-02-12 21:15:03 +11:00
Oliver Walters
9be2989971
Refactor printing code into ReportPrintMixin
2021-02-12 21:08:33 +11:00
Oliver Walters
a1cf893eb2
List API endpint for BOM reports
2021-02-12 20:55:13 +11:00
Oliver Walters
ba85ff63bf
Refactor selectTestReport into selectReport
2021-02-12 20:38:30 +11:00
Oliver Walters
12821b80fb
Add BOMReport model
2021-02-12 20:28:12 +11:00
Oliver Walters
19143ed082
Modal form CSS fixes
2021-02-12 20:13:17 +11:00
Oliver Walters
b22b82877d
Hide units when empty
2021-02-12 20:01:09 +11:00
Oliver Walters
efc2290613
Remove code which was causing issue
2021-02-12 19:57:44 +11:00
Oliver Walters
2fa7c8706b
Wrap custom filter validation in try/except blocks
2021-02-10 20:40:15 +11:00
Oliver Walters
a5c36e2ca8
Update scheme for inventree test report
...
- Copy across a simpler report which extends the "base" report
- This way the InvenTree report version is always up to date!
2021-02-06 18:07:27 +11:00
Oliver Walters
ef31727ec9
Would you like some PEPper with that?
2021-02-06 17:58:21 +11:00
Oliver Walters
30d95e1511
Add 'REPORT_DEBUG_MODE' setting
...
- If set, reports are printed in raw HTML
- Not pretty, but useful for debugging output of rendered template
2021-02-06 17:36:22 +11:00
Oliver Walters
dbaa0fc300
Add default page size for reports
...
- A4 / Legal / Letter
- Use this for the default page size for InvenTree reports
2021-02-06 17:11:20 +11:00
Oliver Walters
b5e993872f
Keep asset and snippet filenames the same (if possible)
2021-02-05 13:51:25 +11:00
Oliver Walters
d686fb5057
Fix typo in js file
2021-02-05 12:31:13 +11:00
Oliver Walters
f458342e5f
Add report revision information to the template context
2021-02-05 12:02:16 +11:00
Oliver Walters
33d66182df
Add "revision" number to report model
...
- Auto-increments whenever the model is saved
2021-02-05 12:01:44 +11:00
Oliver
af7a627230
Merge pull request #1271 from SchrodingersGat/migration-unit-test
...
Migration unit test
2021-02-04 23:56:12 +11:00
Oliver Walters
978ea7cc0b
Typo fix
2021-02-04 23:11:19 +11:00
Oliver Walters
3c5169c793
So I learned something today...
...
In migration files you can access the "historical" pythonic model, and use that, with *all* the helpers,
rather than writing clunky old SQL!!!!
:'(
2021-02-04 23:10:10 +11:00
Oliver Walters
74704a7c1e
Mark migrations with data operations "non atomic"
...
Ref: https://docs.djangoproject.com/en/dev/howto/writing-migrations/#non-atomic-migrations
2021-02-04 22:19:15 +11:00
Oliver Walters
140c8b5395
Use integer field instead of boolean literal (not correct SQL)
2021-02-04 21:33:10 +11:00
Oliver Walters
62a7964dda
PEP fixes
2021-02-04 21:17:20 +11:00
Oliver Walters
a0e7d37a19
Add setting for enabling / disabling test reports
2021-02-04 21:15:19 +11:00
Oliver Walters
5aec487c12
TestReport name no longer needs to be unique
2021-02-04 21:15:07 +11:00
Oliver Walters
bc36775270
Copy default test report across
2021-02-04 20:25:01 +11:00
Oliver Walters
98d291c2f8
Add model rule for ReportSnippet
2021-02-04 19:26:43 +11:00
Oliver Walters
59904ace1d
Revoke support for LaTex reporting
2021-02-04 16:18:28 +11:00
Oliver Walters
264bd625d3
Remove debug string
2021-02-04 16:13:03 +11:00
Oliver Walters
0de284f1aa
Unit fixes
2021-02-04 16:06:01 +11:00
Oliver Walters
6ebebe03d4
Simplify report snippet class definition
2021-02-04 15:38:41 +11:00
Oliver Walters
a025b7239d
Adds simple test-report template
2021-02-04 15:29:46 +11:00
Oliver Walters
ddbf2a6313
Add margin callouts for report template base
2021-02-04 14:49:11 +11:00
Oliver Walters
cf0c43d899
Add report base template
2021-02-04 13:54:26 +11:00
Oliver Walters
6230fb3614
Add custom report template tags
2021-02-04 13:41:47 +11:00
Oliver Walters
801b945438
Add current date to report context
2021-02-04 13:33:14 +11:00
Oliver Walters
3ccc500e8e
Add more context data to report
2021-02-04 12:58:19 +11:00
Oliver Walters
b107c54eb2
PEP fix
2021-02-04 09:13:45 +11:00
Oliver Walters
cabac6614c
Add unit test for currency migration
2021-02-04 09:13:23 +11:00
Oliver Walters
e407b99d0d
Add initial migration unit test for the 'part' app
2021-02-04 09:13:11 +11:00
Oliver Walters
d811f3c48a
Typo fix
...
(cherry picked from commit c58399206c
)
2021-02-04 08:39:27 +11:00
Oliver Walters
93f0dbd4ee
Bug fix: add missing line
...
(cherry picked from commit 2303e03580
)
2021-02-04 08:39:20 +11:00
Oliver Walters
ad0b59bf11
Bug fxi
...
(cherry picked from commit 0e11b722be
)
2021-02-04 08:39:14 +11:00
Oliver Walters
b284fe7f2b
Remove quotes around column names
...
(cherry picked from commit 386cb2dd3a
)
2021-02-04 08:39:05 +11:00
Oliver Walters
75431f0ee4
Flake errors
2021-02-04 00:51:00 +11:00
Oliver Walters
e417ff2b4d
Test migrations for build app
2021-02-04 00:44:37 +11:00
Oliver Walters
29bb735dc4
Helper functions to automatically extract migration file info
2021-02-04 00:25:00 +11:00
Oliver Walters
bd9447d9aa
Add django-migration-linter to ensure django migrations are tippy-top
2021-02-03 23:29:14 +11:00
Oliver Walters
34dbfe6d28
Test troublesome migration 0019
2021-02-03 23:16:23 +11:00
Oliver Walters
cbadb2a888
Small refactor, and allow editing of ReportAsset in the admin interface
2021-02-03 21:54:11 +11:00
Oliver Walters
90bef69a59
Adds "report snippet" class allowing re-usable report snippets to be uploaded
2021-02-03 16:58:06 +11:00
Oliver Walters
5e9097b5e0
PSQL: Upper-case column names *must* be qualified with double-quotes
...
Ref: https://www.xspdf.com/resolution/53039249.html
2021-02-03 13:16:32 +11:00
Oliver Walters
0e246a7fdf
Migration fix (response is different for postgresql)
2021-02-03 13:02:28 +11:00
Oliver Walters
793e5b820e
Remove all model references from migration file
2021-02-03 11:56:48 +11:00
Oliver Walters
bc43d14ebf
Change model functions to raw SQL
2021-02-03 11:28:43 +11:00
Oliver Walters
f798537c73
Reverse migration company.0024
2021-02-03 09:52:59 +11:00
Oliver Walters
43e03ed023
Update unit tests
2021-02-01 12:26:58 +11:00
Oliver Walters
7d38507785
Merge remote-tracking branch 'inventree/master' into simple-qr-codes
2021-02-01 12:24:16 +11:00
Oliver Walters
97140b19ba
Limit barcode hash to printable characters.
...
This is a dirty filthy hack, as the web-input strips non printable chars when they are typed in (but will accept them if they are copy-pasted)
2021-01-31 21:45:34 +11:00
Oliver
27b8928a10
Merge pull request #1263 from SchrodingersGat/table-translations
...
Table translations
2021-01-30 09:48:47 +11:00
Oliver Walters
8fda2cf745
Fixes for unit tests
2021-01-29 12:47:46 +11:00
Oliver Walters
4ef6a6dc62
Translations for stock transaction notes
2021-01-29 12:23:22 +11:00
Oliver Walters
282ed0c637
Recompile translations
2021-01-29 12:05:47 +11:00
Oliver Walters
c1a54ddffd
Expose bootstrap table strings to translation layer
2021-01-29 12:04:36 +11:00
Oliver Walters
62501ecb93
Hide main QR button if setting is disabled
2021-01-29 09:48:16 +11:00
Oliver Walters
fc193c26d0
Delete unused function
2021-01-28 22:43:41 +11:00
Oliver Walters
489a15704c
Refactoring
2021-01-28 22:41:20 +11:00
Oliver Walters
ae15ce9d0a
Update translations
2021-01-28 22:38:47 +11:00
Oliver Walters
e8d73c78eb
Fixes for unit tests
2021-01-28 22:37:28 +11:00
Oliver Walters
c61631a380
Refactor tractor
2021-01-28 22:24:06 +11:00
Oliver Walters
5e5bced0c7
Optionally include javascript code based on barcode feature
2021-01-28 21:51:34 +11:00
Oliver Walters
4641123cd8
Allow multiple stock items to be checked into a location using table selection
2021-01-28 21:47:39 +11:00
Oliver Walters
d61ae8532a
Dialog for checking multiple items into a stock location
2021-01-28 21:36:57 +11:00
Oliver Walters
7e8def15ed
Hide barcode actions if barcode support is disabled
2021-01-28 20:45:42 +11:00
Oliver Walters
51a33e5dca
Add setting to enable / disable barcode support
...
(Default = True)
2021-01-28 20:18:03 +11:00
Oliver Walters
220777611a
Prevent part images from auto deleting
...
- Part images can be used for multiple parts
2021-01-27 22:31:21 +11:00
Oliver Walters
5c9dd93ff1
More unit test fix
2021-01-22 12:22:29 +11:00
Oliver Walters
03f7baf87f
Unit test fixes
2021-01-22 09:50:30 +11:00
Oliver Walters
2d412e2be1
Default to using "simple" QR codes
2021-01-21 20:55:13 +11:00
Oliver Walters
69362ab960
Display link column in part table
2021-01-20 18:04:08 +11:00
Oliver Walters
82e6b87e1c
Adds unit testing for order overdue status
2021-01-20 07:49:14 +11:00
Daniel Pervan
0d462389b9
Fix misspelled query filter method name
2021-01-19 12:00:30 +01:00
Oliver
d17cb47e3c
Update version.py
2021-01-19 11:06:08 +11:00
Oliver
5c2012f873
Update version.py
2021-01-19 11:05:50 +11:00
Oliver Walters
59e37b2526
Improve filter validation for test report
2021-01-19 08:15:50 +11:00
Oliver Walters
f81c154578
Update translation files
2021-01-18 23:25:11 +11:00
Oliver Walters
436207b315
Merge remote-tracking branch 'inventree/master' into batch-reports
...
# Conflicts:
# InvenTree/templates/stock_table.html
2021-01-18 23:23:58 +11:00
Oliver
a5aa90cdf2
Merge pull request #1155 from eeintech/stock_owner
...
Stock Locations and Items Ownership
2021-01-18 22:55:26 +11:00
Oliver Walters
833ba8c472
Template fixes
2021-01-18 22:45:07 +11:00
Oliver Walters
526d81481b
Cleanup
2021-01-18 22:25:53 +11:00
Oliver Walters
697a338700
Add a smattering of unit tests
2021-01-18 22:14:38 +11:00
Oliver Walters
6a7c722efc
Stock table button cleanup
2021-01-18 21:52:20 +11:00
Oliver Walters
952da19600
Print test report for multiple stock items at once
2021-01-18 21:42:55 +11:00
Oliver Walters
0a566c062d
Add click callback on item test tab
2021-01-18 21:36:37 +11:00
Oliver Walters
ef7cc3f78d
Replace existing django form views with API request
2021-01-18 21:33:15 +11:00
Oliver Walters
1b835a71df
Print one (or more!) report templates via API
2021-01-18 21:17:19 +11:00
Oliver Walters
cbb286e46d
Add API for stock item test report
2021-01-18 20:55:30 +11:00
Oliver
873ac9accb
Merge pull request #1241 from SchrodingersGat/settings.py
...
Allow more settings to be specified via environment variables
2021-01-18 20:52:50 +11:00
Oliver Walters
f7079c3bc2
Style fixes
2021-01-18 20:21:19 +11:00
Oliver Walters
3ae4125df3
Allow more settings to be specified via environment variables
2021-01-18 20:17:36 +11:00
Oliver Walters
c392bba196
Add script to calculate translation stats
2021-01-18 19:13:52 +11:00
Oliver Walters
c517801c5f
Update doc strings for translation scripts
2021-01-18 18:51:10 +11:00
Oliver Walters
2b30df1a70
Fix
2021-01-18 14:41:31 +11:00
Oliver Walters
a7baad33ba
Fix form error for creating a new stock item
2021-01-18 14:41:31 +11:00
eeintech
72c7ceb553
Merged master and updated stock_table.html
2021-01-17 13:11:59 -05:00
Oliver Walters
0dee4df8fb
Bug fix
2021-01-15 17:11:46 +11:00
Oliver Walters
4952c95c33
Extra check to prevent JS crash
2021-01-15 16:51:34 +11:00
Oliver Walters
fc32d99327
Add "updated_before" and "updated_after" filter for stock API
2021-01-15 16:39:50 +11:00
Oliver Walters
ef3ac43c4a
Add "last updated" date to stock table
2021-01-15 15:27:40 +11:00
Oliver Walters
85bce24e30
Limit matches to the 5 "most matchy" ones
2021-01-15 12:32:27 +11:00
eeintech
7d5571ba5b
Merged changes from master
2021-01-14 08:52:56 -05:00
Oliver Walters
a70416abac
Update translations
2021-01-15 00:04:31 +11:00
Oliver Walters
0134597747
Merge remote-tracking branch 'inventree/master' into label-api
...
# Conflicts:
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
2021-01-14 23:56:23 +11:00
Oliver
449b462bf2
Merge pull request #1232 from SchrodingersGat/purchase-order-target-date
...
Purchase order target date
2021-01-14 23:26:58 +11:00
Oliver Walters
4fd0d7d8b5
Unit test fix
2021-01-14 23:06:49 +11:00
Oliver Walters
959914c78c
Display overdue purchase orders in the calendar view
2021-01-14 22:19:32 +11:00
Oliver Walters
fef5b7548e
Increase unit testing for order API
2021-01-14 22:06:53 +11:00
Oliver
af7af395f8
Merge pull request #1219 from rcludwick/secret_key
...
Fixes #1215 . Allow secret key to come from file.
2021-01-14 21:11:30 +11:00
Rob Ludwick
3cfe358102
Fixes #1215 . Allow secret key to come from file.
2021-01-14 01:02:34 -07:00
Oliver Walters
02132fa495
Updated translation files
2021-01-14 17:55:00 +11:00
Oliver Walters
75e1442fce
Display overdue purchase orders on the index page
2021-01-14 17:48:16 +11:00
Oliver Walters
e8fd597f29
Adds ability to edit target_date in purchaseorder form
2021-01-14 17:44:21 +11:00
Oliver Walters
21e8ddd1e6
Display overdue status on PurcahseOrder page
2021-01-14 17:42:38 +11:00
Oliver Walters
a8e6d0a89f
Display overdue status in purchase order table
...
- Allow table to be filtered by "overdue" status
2021-01-14 17:37:10 +11:00
Oliver Walters
4d73aab090
Add "overdue" flag to serializer
...
- Also allow filtering by overdue status in the API
2021-01-14 17:33:24 +11:00
Oliver Walters
834d9ec9a1
Add "target_date" field to PurchaseOrder
2021-01-14 17:28:57 +11:00
Oliver Walters
1dc2636e45
Add option to show part quantity in various forms
...
Enabling this option can make BOM item forms *very* slow!
2021-01-14 15:20:42 +11:00
Oliver Walters
be41741b1e
Bug fix for cancelling purchase orders
2021-01-14 14:37:49 +11:00
Oliver
76c938762c
Merge pull request #1228 from SchrodingersGat/stock-status-ste
...
Stock status ste
2021-01-14 14:24:47 +11:00
Oliver Walters
bb9fe98a7e
Set status for multiple stock items at once
2021-01-14 14:04:24 +11:00
Oliver Walters
aac835f634
Add menu item to set stock status for multiple items
2021-01-14 13:41:38 +11:00
Oliver Walters
d459947949
Add "Can Build" column in BOM view
2021-01-14 13:34:51 +11:00
Oliver Walters
1cb951bd0b
Fix for font-awesome icon
2021-01-14 12:08:54 +11:00
Oliver Walters
df327d4e64
Add stocktake_date field to stock API, and to stock table
2021-01-14 11:29:35 +11:00
Oliver Walters
1316e6bf5b
Properly save user data when creating a new StockItem
2021-01-14 11:24:52 +11:00
Oliver Walters
890ce9ef95
Fix IPN comparison against null value
2021-01-14 10:58:29 +11:00
Oliver Walters
df335b683c
Add #TODO
2021-01-14 10:54:34 +11:00
eeintech
c5778b6fb6
Added missing migration file (how did it escape?)
2021-01-13 17:33:55 -05:00
eeintech
e92e5dfe8f
Merged master
2021-01-13 17:08:01 -05:00
Oliver Walters
b7bbc97218
Add unit test
2021-01-14 08:32:37 +11:00
Oliver Walters
9884fe5c5e
Improve validators for 'filters' field
2021-01-14 08:15:05 +11:00
Oliver Walters
88a7b3251d
Remove unused import
2021-01-14 08:14:32 +11:00
eeintech
af1abb7129
Added missing migration file
2021-01-13 14:57:16 -05:00
eeintech
59c0a50289
Separated category from part permissions and location from stock item permissions
2021-01-13 13:35:49 -05:00
eeintech
28fb1b5fab
Added owner model to admin page and added test cases
2021-01-13 11:38:37 -05:00
Oliver Walters
6e4cf7c092
Catch db integrity errors
2021-01-13 22:07:30 +11:00
Oliver Walters
80c88b4fcc
Update translations
2021-01-13 21:53:11 +11:00
Oliver Walters
4e2d3b7da2
Improvement for existing StockItemLabel template
2021-01-13 21:52:16 +11:00
Oliver Walters
e561b3a4fc
Add StockItemLabel templates
2021-01-13 21:51:55 +11:00
eeintech
a1b2347784
Also allow part attachements and parameters to be deleted
2021-01-12 17:43:12 -05:00
eeintech
ba1862478c
Allow user with part.change permission to delete BOM items
2021-01-12 17:34:11 -05:00
eeintech
0a0a47a5e4
Added location owner change test case to verify stock item owner in that location is also updated
2021-01-12 17:11:46 -05:00
eeintech
3054c637dd
Removed f-string debug
2021-01-12 16:42:09 -05:00
eeintech
5ca03af3e2
Improved Owner.get_owner method and fixed tests (try#2)
2021-01-12 16:36:29 -05:00
eeintech
49c954aa68
Fixed test cases?
2021-01-12 15:02:44 -05:00
eeintech
452d22579a
Removed f-string causing build failure
2021-01-12 13:23:14 -05:00
eeintech
b6135fda74
Updated templates and a lot of manual testing
2021-01-12 13:16:04 -05:00
eeintech
9eace09e0e
Added owner create method and fixed post_save receiver
2021-01-12 10:53:17 -05:00
eeintech
6f3cbb4e14
Switched to global owner model, need to validate use-cases table and fix tests
2021-01-11 17:41:29 -05:00
eeintech
6a88bdb37d
StockLocation owner is now a GenericForeignKey that can be set to user or group models
2021-01-11 12:56:40 -05:00
Oliver Walters
01e27a0d59
Add simplified 'barcode' function for StockItem
2021-01-12 00:22:58 +11:00
Oliver Walters
663a0a6165
Create simple label templates for stocklocation labels
2021-01-11 23:45:25 +11:00
Oliver Walters
d1d243fb14
Update label models
2021-01-11 23:44:11 +11:00
Oliver Walters
b6cd2c215a
Adds function to provide simplified barcode for stock location
2021-01-11 21:32:31 +11:00
Oliver Walters
1368b06afa
PEP fix
2021-01-11 19:46:17 +11:00
Oliver Walters
d91700fd39
StockLocation labels are now printable
2021-01-11 18:41:57 +11:00
Oliver Walters
af47b211fd
Add dialog for selection of stock location labels
2021-01-11 17:22:04 +11:00
Oliver Walters
79b63e6d30
Update translation
2021-01-09 22:23:51 +11:00
Oliver Walters
a3c5ea1f2b
Typo fix
2021-01-09 22:02:33 +11:00
Oliver Walters
21d5440f98
Remove unused views
2021-01-09 21:55:05 +11:00
Oliver Walters
e133fff03e
Download PDF for labels
2021-01-09 21:50:42 +11:00
Oliver Walters
bdc7367e29
Add endpoint for printing labels
2021-01-09 20:43:48 +11:00
Oliver Walters
44e60a705e
Add detail endpoints for the StockItemLabel and StockLocationLabel models
2021-01-09 08:20:29 +11:00
Oliver Walters
a0d1f95171
Add exception for new database table
2021-01-09 08:10:04 +11:00
eeintech
587bf26d94
Fixed style
2021-01-08 14:23:35 -05:00
eeintech
2f78c7c036
Updated stock tests quantities
2021-01-08 14:05:53 -05:00
eeintech
d25a719724
Merge branch 'stock_owner' of github.com:eeintech/InvenTree into stock_owner
2021-01-08 13:51:49 -05:00
Oliver Walters
7c7a67fcc6
Add filterable API for StockLocation labels
2021-01-08 23:08:30 +11:00
Oliver Walters
f0fa092c66
Add model for StockLocation label
2021-01-08 23:08:00 +11:00
Oliver Walters
80c7ee6dab
Add ability to filter label by StockItem
2021-01-08 22:47:47 +11:00
Oliver Walters
446c744462
Expose stock items labels to the API
2021-01-08 22:19:52 +11:00
Oliver Walters
59bb5d15c8
Filter PartAttachment API list by Part reference
2021-01-08 08:43:00 +11:00
eeintech
67bc86c159
Updated stock owners migration file
2021-01-07 14:05:43 -05:00
eeintech
f26f1c38a2
Merged master
2021-01-07 13:50:29 -05:00
Oliver Walters
75f31ecc63
Update translations
2021-01-07 23:50:34 +11:00
Oliver Walters
47b0f40e97
Calendar view for build orders
2021-01-07 23:41:54 +11:00
Oliver Walters
76c86e7b2f
Calendar view for purchase orders
2021-01-07 23:04:00 +11:00
Oliver Walters
38b6367453
PEP fixes
2021-01-07 22:34:17 +11:00
Oliver Walters
b7203f0ebb
Switch between calendar and list view for sales orders
2021-01-07 22:32:17 +11:00
Oliver Walters
5f6442ba6b
Render sales orders to a calendar view
2021-01-07 18:47:29 +11:00
Oliver Walters
b4277e09e8
Add fullcalendar javascript library
2021-01-07 14:21:32 +11:00
Oliver Walters
bb72658e76
Rearrange button options for StockItem
2021-01-07 00:18:18 +11:00
Oliver Walters
7ac7e8f969
Fixed unit test
2021-01-06 23:38:01 +11:00
Oliver Walters
a8e3e6c8db
Update translation
2021-01-06 23:12:52 +11:00
Oliver Walters
e5b346e7fa
PEP fixes
2021-01-06 23:09:26 +11:00
Oliver Walters
1d6a049c5a
Annotate stock queryset with stale status
2021-01-06 23:06:49 +11:00
Oliver Walters
a5b18640af
Display stale stock on index page
2021-01-06 22:30:12 +11:00
Oliver Walters
e62873a650
Display "stale" status on StockItem info page
2021-01-06 22:21:18 +11:00
Oliver Walters
ba915da22b
Filter StockItem API by staleness
2021-01-06 22:20:54 +11:00
Oliver Walters
33d6396a4e
Exclude expired stock from builds
2021-01-06 21:00:45 +11:00
Oliver Walters
580e7599a0
Prevent expired stock from being added to a sales order
2021-01-06 20:22:56 +11:00
Oliver Walters
9b086560cb
Hide "expiry_date" column in Stock table if feature not enabled
2021-01-06 12:09:48 +11:00
Oliver Walters
d0fb69e67d
Add option to enable / disable stock expiry feature
...
- Simply hides fields in form views
2021-01-05 08:50:07 +11:00
Oliver Walters
1335c85de1
Edit new stock settings on settings page
2021-01-05 00:59:10 +11:00
Oliver Walters
855098e30b
Merge conflicting migration files
2021-01-05 00:58:48 +11:00
Oliver Walters
e715ea5d79
Merge remote-tracking branch 'inventree/master' into stock-expiry
...
# Conflicts:
# InvenTree/common/models.py
2021-01-05 00:58:32 +11:00
Oliver Walters
213d6550d3
Add new setock settings
2021-01-05 00:54:05 +11:00
Oliver Walters
9a30108b75
Auto-update the expiry date in the StockItem form when switching Part selection
2021-01-05 00:37:42 +11:00
Oliver Walters
9dc9c0fcb7
Auto-populate expiry date for stockitem when created via the API
...
(Now with unit testing!)
2021-01-05 00:21:26 +11:00
Oliver Walters
da02ab3eac
Add unit testing for view
2021-01-05 00:01:44 +11:00
Oliver Walters
7d7d5d24cc
Pre-fill stockitem expiry date in CreateStockItem form
2021-01-04 23:40:51 +11:00
Oliver Walters
37dcf1c1cf
Add "default_expiry" field to Part model
2021-01-04 23:36:11 +11:00
Oliver Walters
692cee113c
Display "expiry date" column in stock table
2021-01-04 23:11:35 +11:00
Oliver Walters
4d7c60a130
Add "expired stock" table to index page
2021-01-04 09:46:14 +11:00
Oliver Walters
d1ce0f062e
Improve unit testing for StockItem API
2021-01-04 01:22:43 +11:00
Oliver Walters
a0c95579b4
Display expiry status on StockItem page
...
- Also adds ability to filter Stock table by expired status
2021-01-04 00:21:47 +11:00
Oliver Walters
39b9dcfec9
Add 'expired' flag to StockItem serializer
2021-01-04 00:21:21 +11:00
Oliver Walters
1a930f7f80
Add ability to edit expiry_date for StockItem
2021-01-04 00:20:02 +11:00
Oliver Walters
6d4c81e68b
Add ability to filter by 'expired' status in API
2021-01-04 00:19:48 +11:00
Oliver Walters
07cda765f0
Add "expiry_date" field to StockItem model
...
- Also adds "is_expired" function
2021-01-03 23:56:35 +11:00
Oliver
bc72cd612e
Merge pull request #1201 from SchrodingersGat/settings
...
Settings Improvements
2021-01-03 23:47:35 +11:00
Oliver Walters
0f9c4703cf
Update unit testing
2021-01-03 23:33:47 +11:00
Oliver Walters
b05504e1c4
Add PART_VIRTUAL setting
2021-01-03 23:13:58 +11:00
Oliver Walters
0aeeba808c
PEP fixes
2021-01-03 23:07:21 +11:00
Oliver Walters
6c7b648133
Implement global settings for assembly and template values of Part model
2021-01-03 23:06:51 +11:00
Oliver Walters
9fa37a9156
Improve visualisation of global settings
2021-01-03 22:57:39 +11:00
Oliver Walters
8e9c976e99
Update translations
2021-01-03 22:18:08 +11:00
Oliver Walters
2a91bb0c87
Update SupplierPart model to allow data importing
...
- django-import-export plugin seems to require null=True for char fields
- yes, this goes against django "best practice"
- Hopefully a better solution can be found
2021-01-03 22:16:32 +11:00
Oliver Walters
2ad090c224
pop purchase_price field for StockItemEdit form
2021-01-03 13:15:42 +11:00
Oliver Walters
fe0d356675
pops the purchase_price field instead of using a HiddenInput
...
Using a HiddenInput on a MoneyFormField causes a validation error, for some reason...
2021-01-03 13:13:14 +11:00
Oliver Walters
298e9cae65
Fix variable scope issue
2021-01-03 10:07:38 +11:00
Oliver Walters
725a70327a
Add some unit testing
2021-01-02 22:21:37 +11:00
Oliver Walters
b2a732197b
Fix target date form field for SalesOrder
2021-01-02 21:54:07 +11:00
Oliver Walters
2b57ffeb08
Custom date picker field
...
- Prevents picker from being "required" by the form
2021-01-02 21:50:10 +11:00
Oliver Walters
03276629c2
CSS tweaks
2021-01-02 21:41:47 +11:00
eeintech
3ff76fbdab
Merging master and resolved conflict
2020-12-18 17:08:37 -05:00
Oliver Walters
08a8556fe7
Fix unit testing
2020-12-18 19:46:02 +11:00
Oliver Walters
13e924cc05
Fix default value for PO and SO codes
2020-12-18 16:10:55 +11:00
Oliver Walters
8e13a7b470
Add "overdue sales orders" to index page
2020-12-18 12:45:42 +11:00
Oliver Walters
c34196538b
Filter API by overdue status
2020-12-18 12:40:47 +11:00
Oliver Walters
b21c6f0b99
Add overdue filter for salesorder table
2020-12-18 12:27:08 +11:00
Oliver Walters
c6134b54ab
Add "overdue" status to SalesOrder serializer
2020-12-18 12:26:58 +11:00
Oliver Walters
000348f70f
Add 'target_date' field to SalesOrder model
2020-12-18 12:19:16 +11:00
Oliver
8bb4683bbe
Merge pull request #1175 from eeintech/fix_stock_template
...
Keep 'stock actions' button enabled when on children tab
2020-12-18 12:02:39 +11:00
eeintech
1a48405491
Keep 'stock actions' button enabled when on children tab
2020-12-17 17:37:54 -05:00
eeintech
bcae1d09a8
Fixed category parameter templates settings view
2020-12-17 17:25:10 -05:00
Oliver Walters
06d9f4f982
Bugfix for duplicate IPN checks when blank IPN is used
2020-12-16 21:02:53 +11:00
Oliver
7df25df2af
Merge pull request #1168 from SchrodingersGat/order-date
...
Build Order Target Date
2020-12-16 19:36:10 +11:00
Oliver Walters
464d76a819
Update form title strings
2020-12-16 19:09:53 +11:00
Oliver Walters
447f0b0ed7
Update translations
2020-12-16 19:03:04 +11:00
Oliver Walters
0500036d0a
settings.py - typo fix
2020-12-16 16:58:40 +11:00
Oliver Walters
261a9af4f5
Typo fix
2020-12-16 16:32:20 +11:00
Oliver Walters
a9310d4a39
Add a #TODO in code
2020-12-16 16:16:07 +11:00
Oliver Walters
a8704a05d6
PEP style fixes
2020-12-16 16:15:39 +11:00
Oliver Walters
597bf8be73
Add date input to build target_date
2020-12-16 16:13:38 +11:00
Oliver Walters
6ef4325eac
Javascript formatting
2020-12-16 15:55:42 +11:00
Oliver Walters
1a07ae0936
Render link rather than just text
2020-12-16 15:48:41 +11:00
Oliver Walters
17d23fa47c
Add overdue builds to the index page
2020-12-15 23:34:28 +11:00
Oliver Walters
c8c50af54b
Filter builds by "overdue" status
2020-12-15 23:31:19 +11:00
Oliver Walters
51da26d21d
Filter builds by "overdue" status
2020-12-15 23:27:59 +11:00
Oliver Walters
802dd5174c
Add "target_date" for Build model
...
- Add "overdue" status to Build serializer
2020-12-15 23:24:37 +11:00
Oliver Walters
f11348c965
Improve rendering for login page
2020-12-15 22:39:57 +11:00
Oliver Walters
297bfd776c
Pre-select a template if only one matching one exists
2020-12-15 12:31:02 +11:00
Oliver Walters
ef032d406f
Bugfix for stock report filter
2020-12-15 11:57:52 +11:00
Oliver
980cb9522b
Merge pull request #1162 from SchrodingersGat/gunicorn-conf
...
Update default gunicorn conf file
2020-12-14 11:00:57 +11:00
Oliver Walters
55b7cd3d6a
PEP fix
2020-12-14 10:44:38 +11:00
Oliver Walters
648595cf18
Hide purchase price field for non-purchaseable parts
2020-12-14 09:55:39 +11:00
Oliver Walters
d609e881c2
Update default gunicorn conf file
2020-12-14 09:43:07 +11:00
eeintech
1ef5a2b481
Display permission levels for each ruleset in Group admin list view
2020-12-10 15:38:48 -05:00
eeintech
33dfecfdef
Added create view test cases for stock ownership
2020-12-03 13:29:59 -05:00
eeintech
3aad5111b5
Stock ownership: test case for edit stock location and item
2020-12-03 11:56:45 -05:00
eeintech
f99c83f69d
Added test case for stock location ownership
2020-12-03 07:32:01 -05:00
eeintech
5c6939429a
Improved handling of stock location owner
2020-12-02 17:19:41 -05:00
eeintech
1a7a460ba8
Hidden owner field when ownership control is disabled
2020-12-02 14:05:45 -05:00
eeintech
de1dfdcc38
Improved naming of new setting and variables
2020-12-02 13:38:53 -05:00
eeintech
2bdd1305ed
Fix style
2020-12-02 13:26:26 -05:00
eeintech
c66ac2579e
Updated StockItem create/edit view with ownership control
2020-12-02 13:25:33 -05:00
eeintech
2d7461f609
Updated StockLocation create/edit view with ownership control
2020-12-02 12:05:00 -05:00
eeintech
c9b3c16c6f
Added help text on owner fields
2020-12-01 17:46:11 -05:00
eeintech
8dac6bb982
Updated template stock item logic and added to stock locations
2020-12-01 17:41:03 -05:00
eeintech
4104e7df8e
Fixed template logic
2020-12-01 16:08:27 -05:00
eeintech
2c38be2d13
Added global setting and updated stock item templates
2020-12-01 15:54:05 -05:00
eeintech
e1fb7e5d98
Added owner field to both stock item and location tables and forms
2020-12-01 13:45:01 -05:00
Oliver Walters
47d38e1cca
Change delete behaviour for parent build item
...
- was causing database integrity errors when a parent build existed
2020-12-01 10:24:51 +11:00
Bjoern Biesenbach
95f62d529f
Fix sidenav in stocklist
2020-11-30 18:30:51 +01:00
Oliver Walters
ea2f5009c8
Vastly improved speed of BOM upload
...
- Was calculating the stock levels for *every* part, for *every* drop down
- Many many many calls were being made
- Just remove stock count entirely from the drop-down menus
2020-11-27 14:40:30 +11:00
Oliver
a5e6ac2300
Merge pull request #1148 from SchrodingersGat/order-parts
...
Order parts
2020-11-27 12:28:04 +11:00
Oliver Walters
50a88e4826
Revert "Add extra context to SupplierPartCreate form"
...
This reverts commit 5f8f0232a9
.
2020-11-27 11:19:16 +11:00
Oliver Walters
6c68197e61
Allow part ordering from build view
2020-11-27 11:18:58 +11:00
Oliver Walters
7068f70811
Fixes for 'order parts' form
...
- Sometimes the part pk was not being retrieved properly
2020-11-27 11:18:45 +11:00
Oliver Walters
607cc90ce0
Add extra context to SupplierPartCreate form
...
(cherry picked from commit 5f8f0232a9
)
2020-11-27 11:18:23 +11:00
Oliver Walters
5f8f0232a9
Add extra context to SupplierPartCreate form
2020-11-27 11:17:55 +11:00
Oliver Walters
56f05e2604
Fixes for 'non field' errors in forms
...
- Fixes issue where non-model fields would not show error text
2020-11-27 10:42:01 +11:00
Oliver Walters
083d7671d0
Bug fix for BOM table
...
If the BOM for part included a BomItem with the same PK as the top-level part,
the bootstrap-tree-grid library borked
Probably for good reason, too!
So we now ensure that the top-level key is unique
2020-11-24 21:19:19 +11:00
Oliver Walters
e3231bbedb
Hide "pricing" information in the BOM table
2020-11-24 20:58:18 +11:00
Oliver Walters
b5d75d6e6a
PEP fixes
2020-11-24 11:56:51 +11:00
Oliver Walters
ce82579930
Cleanup getRequiredParts function
2020-11-24 10:18:07 +11:00
Oliver Walters
371ec582e1
Cleanup queryset for BomItemEdit view
2020-11-24 09:43:49 +11:00
Oliver Walters
3391db506a
Cleanup queryset for BomItemCreate view
2020-11-24 09:43:32 +11:00
Oliver Walters
af9b88de11
Fix for BomItem clean function
...
Handle the case where the sub_part does not exist
2020-11-24 09:33:26 +11:00
Oliver
73259c0bcb
Merge pull request #1140 from SchrodingersGat/request-frequency
...
Reduce duplicate function calls in custom context parser
2020-11-20 11:40:10 +11:00
Oliver Walters
20e8161038
Reduce duplicate function calls in custom context parser
2020-11-20 08:29:06 +11:00
eeintech
11745ebd6c
Removed one too many indent
2020-11-19 15:32:42 -05:00
eeintech
4768c9cbb3
Fixed validation of SupplierPart edit form by forcing the value of single_pricing field
2020-11-19 15:31:39 -05:00
Oliver Walters
4049c8e915
Adds framework for "server health" display
...
- Adds global context object "system_healthy" (boolean)
- Framework for running system health checks
- Updated system info forms
- Displays warning next to user menu if system health errors exist
(cherry picked from commit ce6d626ab39147fc389de90815ca8baae2385d82)
2020-11-19 12:36:54 +11:00
Oliver Walters
599220a931
Fixes for custom SQL queries
...
- Don't use double quotes!
- NO NO NO!
- Single quotes only
2020-11-19 09:15:16 +11:00
Oliver Walters
24fd520ec3
Smallt tweaks for the Stock table
2020-11-18 15:03:51 +11:00
Oliver Walters
6144d7e209
Fix for StockItem creation form
...
- purchase_price field was required (should not be!)
- Fixed some validation issues
- Cleaned up form implementation
2020-11-17 15:29:44 +11:00
eeintech
ac2797c7a1
Improved API endpoint for category parameter templates
2020-11-16 16:10:00 -05:00
Oliver
d8e7c2a932
Update version.py
2020-11-15 16:53:27 +11:00
Oliver
20f6964b1f
Update version.py
2020-11-15 16:51:50 +11:00
Oliver
771efecaa2
Merge pull request #1127 from SchrodingersGat/settings-view-unit-test
...
Extra unit testing for settings forms / views
2020-11-14 09:19:31 +11:00
Oliver Walters
2e842503e6
Fix try statement
2020-11-14 07:39:51 +11:00
Oliver Walters
b738f8b143
Try transaction.atomic
2020-11-13 22:22:02 +11:00
Oliver Walters
aae1400929
Mayyyyyyyyyyyyybe?
2020-11-13 21:37:39 +11:00
Oliver Walters
5f9758e85f
More fixes
2020-11-13 21:01:30 +11:00
Oliver Walters
03e852f957
Remove custom save method
2020-11-13 20:22:28 +11:00
Oliver Walters
f0777ead92
Removed eprint statements
2020-11-13 14:39:28 +11:00
Oliver Walters
0f42916521
Improve settings.py
...
- Load database config from either config.yaml or environment variables
- Mix and match, if you want!
- Move to use logging module rather than just printing stuff
- Error if required database parameters are not required
2020-11-13 13:38:01 +11:00
Oliver Walters
ee70e27f7d
Change function name
2020-11-13 13:21:43 +11:00
Oliver Walters
01ff562dcd
Extra unit testing for settings forms / views
2020-11-13 11:50:58 +11:00
Oliver
1d4b826d03
Merge pull request #1124 from eeintech/fix_nocategory_templates_error
...
Check that category was selected before fetching templates
2020-11-13 10:41:51 +11:00
Oliver
d777549a1a
Merge pull request #1123 from eeintech/fix_form_errors
...
Fixed disabling of form errors messing-up with global settings validation
2020-11-13 09:59:57 +11:00
eeintech
d4ac35b9aa
Check that category was selected before fetching templates
2020-11-12 16:52:22 -05:00
eeintech
80b70fd2df
Fixed disabling of form errors messing-up with global settings
2020-11-12 16:38:35 -05:00
Oliver Walters
362437e75e
PEP fixes
2020-11-13 07:28:21 +11:00
Oliver Walters
f239c8f8c8
Add missing migration file
2020-11-12 22:04:50 +11:00
Oliver Walters
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
Oliver Walters
47cbf3071d
Add option to add a single-quantity price-break when creating a new SupplierPart object
...
- Add unit testing!
2020-11-12 21:36:32 +11:00
Oliver Walters
534f43872f
Bug fix for SupplierPart table
2020-11-12 20:14:10 +11:00
Oliver Walters
fd79f1ea0e
Fixes for 'single pricing' for SupplierPart
2020-11-12 19:46:19 +11:00
Oliver Walters
6e7224ee7c
Add "purchase price" field to PurchaseOrderLineItem table
2020-11-12 18:05:24 +11:00
Oliver Walters
0988040172
Catch exception where InvenTree setting object is referenced but the database is not migrated yet
2020-11-12 18:04:50 +11:00
Oliver Walters
cb3c86f87a
Merge remote-tracking branch 'inventree/master' into currency-support
...
# Conflicts:
# InvenTree/InvenTree/settings.py
# InvenTree/InvenTree/urls.py
# InvenTree/templates/InvenTree/settings/tabs.html
# InvenTree/users/models.py
# requirements.txt
IMPORTANT: Had to merge some migration files due to different migrations applied on the part model tables
2020-11-12 17:24:48 +11:00
Oliver Walters
96ef5e1bde
Travis fixes
2020-11-12 15:37:21 +11:00
Oliver Walters
fe9749ba4f
Add missing fixture for settings
2020-11-12 14:54:03 +11:00
Oliver Walters
21315096d4
Further unit testing fixes
2020-11-12 14:53:49 +11:00
Oliver Walters
1738df9042
Update unit tests
2020-11-12 14:48:57 +11:00
Oliver Walters
ec8d8e5a64
Add more invoke commands:
...
- export-records: Exports all database records to external file
- import-records: Imports database records from external file
- import-fixtures: Fills the database with dummy records
2020-11-12 13:31:27 +11:00
Oliver Walters
4a8170079e
Remove code which automatically created settings objects on server launch
2020-11-12 12:31:03 +11:00
Oliver Walters
b7187c5e06
Fixes for purchase order table displays
2020-11-12 12:27:01 +11:00
Oliver Walters
391eeb0e46
Specify default currency when creating a new stock item
2020-11-12 11:50:59 +11:00
Oliver Walters
51d2d85c26
When creating a new price break for a supplier part, default to using the currency code specified for the supplier company
2020-11-12 11:14:50 +11:00
Oliver Walters
1532be9c1e
Add 'currency' option for company
...
- e.g. an external supplier might have a default currency
- Adds a form input which only allows selection of allowed currency codes
- Add unit testing for currency validation
2020-11-12 11:02:10 +11:00
eeintech
b4fa56fd96
Fixed PART_CATEGORY_PARAMETERS duplicate (bad merging... oopsy)
2020-11-11 12:40:03 -05:00
eeintech
bfdda847c4
Updated part migration reference in 0054
2020-11-11 11:18:10 -05:00
Francois
a7444a9926
Merge branch 'master' into categories_parameters
2020-11-11 06:40:11 -05:00
Oliver Walters
039a7badd1
A little whoopsie-doo:
...
- Part.clean() was incorrectly referencing a BomItem when it should have been referencing BomItem.part
2020-11-11 16:09:14 +11:00
Oliver Walters
56765d3f5a
Fix for unit testing
2020-11-11 15:19:15 +11:00
Oliver Walters
6c667937c5
Add requirement for django-error-report
...
- Provides an error log viewer in the admin interface at /admin/error_report/error/
- Allows viewing of error logs even in a remote production environment (i.e. no access to command line)
2020-11-11 14:10:12 +11:00
Oliver Walters
ebac06ebee
Add 'single_pricing' form to the EditSupplierPartForm
...
- Idea here is to automatically create a unit-pricing price-break when a new SupplierPart is created
2020-11-11 13:55:25 +11:00
Oliver Walters
fc89501a62
Fix for SQL cursor query
...
- What works in SQLite don't necessarily fly with the big boys
2020-11-11 08:06:14 +11:00
Oliver Walters
5567ad07fd
Update tests and translations
2020-11-11 00:31:39 +11:00
Oliver Walters
a19cf1f27a
PEP fixes
2020-11-11 00:26:59 +11:00
Oliver Walters
4dff18e4a6
Remove common_currency model entirely
...
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
Oliver Walters
1fc2ef5f18
Custom migration for PartSellPriceBreak
2020-11-10 22:31:46 +11:00
Oliver Walters
83582ae87f
Add custom migration for the part_supplierpricebreak model
...
- Copies across existing pricing data
- Yikes
2020-11-10 22:25:05 +11:00
Oliver Walters
e4f2eecb3b
Remove defunct 'build_order' field from StockItem model
...
- This is now handled by the new-and-improved build system, no longer required
2020-11-10 20:12:39 +11:00
Oliver Walters
978fd7c683
Implement default currency selection
...
- Add 'choices' option to InvenTreeSetting class
- Add support for ChoiceField in InvenTreeSetting form
2020-11-10 17:08:08 +11:00
Oliver Walters
48c20c600a
List supported currencies in the configuration template
2020-11-10 16:28:55 +11:00
Oliver Walters
734436b02e
Add integration of django-money
...
- Proper currency support
- Add PurchasePrice field to StockItem model
- This keeps track of both the price and the currency
- Display purchase price on the stockitem detail page
2020-11-10 16:22:42 +11:00
Oliver
9d9ef5fc9c
Merge pull request #1116 from SchrodingersGat/duplicate-ipn
...
Add setting to allow or prohibit duplicate IPN values
2020-11-10 10:52:30 +11:00
Oliver Walters
a6028f027a
Add setting to allow or prohibit duplicate IPN values
2020-11-10 09:03:26 +11:00
eeintech
b17b8db25c
Fix for #1111 (missing logic)
2020-11-09 17:00:12 -05:00
Oliver Walters
7286281a06
Fix for unit testing
2020-11-10 07:14:38 +11:00
Oliver Walters
c4296ad4f1
Update migrations and translation
2020-11-09 23:47:31 +11:00
Oliver Walters
c95f124578
Add some helper magic for setting objects
...
- If the setting is defined as a "bool" then the returned value is automatically cast to a bool
- Add some more unit testing
2020-11-09 23:44:54 +11:00
Oliver Walters
75ab7b247b
Push part settings into part/settings.py
...
- Use the user-configurable defaults in the database model itself
- This means they are observed even when using the API / etc
2020-11-09 23:16:04 +11:00
Oliver Walters
e1b70ff68f
Add default values for create part form
2020-11-09 22:52:32 +11:00
Oliver Walters
8149759852
Add some more part options which set the default values for the following fields:
...
- Purchaseable
- Salable
- Trackable
2020-11-09 20:26:19 +11:00
Oliver
826c471179
Merge pull request #1107 from eeintech/fix_postgres_migration
...
Fix PostGreSQL migration (permissions handler)
2020-11-06 07:58:56 +11:00
Oliver
dadf4d4c13
Merge pull request #1110 from eeintech/order_save_fix
...
Fixed saving of purchase and sales order create forms
2020-11-06 07:53:41 +11:00
eeintech
ba2da17f1e
Disabled crispy form errors
2020-11-05 14:44:04 -05:00
eeintech
5b3dd63b89
Fixed saving of purchase and sales order forms
2020-11-05 14:38:54 -05:00
eeintech
684db67733
Added check for remove too
2020-11-05 09:37:01 -05:00
eeintech
0b76d1d036
Check if permission is not NoneType before adding to group
2020-11-05 09:34:18 -05:00
Oliver Walters
a35c4a5a95
Rename tabs for build order
2020-11-05 20:07:23 +11:00
Oliver Walters
2591d34260
Fixed bug where "New output" button stopped working
...
- Build status was changing from "PENDING" to "PRODUCTION"
- Created new check for active builds
2020-11-05 15:57:46 +11:00
Oliver Walters
d44092b209
Fix issue with shadowed form field
...
- Rename "quantity" to "output_quantity" to address this
2020-11-05 15:52:38 +11:00
Oliver Walters
8b7789cdb3
Set the specified location of a build output
2020-11-05 15:46:42 +11:00
eeintech
324645b67c
Added same level category checkbox and method when adding category template
2020-11-04 12:26:10 -05:00
eeintech
e401bb8e3c
Improved tests, fixed admin, improved naming
2020-11-04 12:06:07 -05:00
eeintech
1c14c2237a
Moved category templates processing to Part save() method
2020-11-04 09:52:26 -05:00
eeintech
9eba564ff6
Merge branch 'master' of git://github.com/inventree/InvenTree into categories_parameters
2020-11-04 07:52:16 -05:00
eeintech
142cea0cbb
Removed custom form save method, remove unused model methods, restored InvenTree CreateAjaxView, improved part related testing
2020-11-04 07:44:06 -05:00
eeintech
853a821497
Merge branch 'master' of git://github.com/inventree/InvenTree into fix_related_parts
2020-11-04 06:46:20 -05:00
Oliver Walters
f560be1a9a
Bug fix: Part thumbnail API list was not working
...
- Part images could not be selected from grid
2020-11-04 15:41:17 +11:00
eeintech
4e157fe956
Fixed text for parent categories checkbox
2020-11-03 17:05:08 -05:00
eeintech
279d5a00ce
Switched to get_ancestors to transverse all parents categories (not only root)
2020-11-03 16:58:53 -05:00
eeintech
5a5a36083e
Finalized implementation when creating new part
2020-11-03 16:54:46 -05:00
Oliver Walters
56b287b2c8
Logic fix for editing stock item creation form
2020-11-04 08:29:09 +11:00
eeintech
72b5a105f8
Made all categories accessible for parameter templates configuration
2020-11-03 14:45:53 -05:00
eeintech
0882528b82
Missing class trailing space
2020-11-03 11:15:16 -05:00
eeintech
32b46cdc2a
Added better PartRelated creation test
2020-11-03 11:14:31 -05:00
eeintech
de2b7e5daf
Re-added post_save method in AjaxCreateView
2020-11-03 08:03:16 -05:00
eeintech
6b702ef676
Manually merged part migrations
2020-11-03 07:27:51 -05:00
Francois
b1885138de
Merge branch 'master' into categories_parameters
2020-11-03 07:01:56 -05:00
Oliver Walters
2e1a5a85a3
Bug fix for unit testing
2020-11-03 22:14:02 +11:00
Oliver Walters
3ea671986c
Merge conflicting migration files
2020-11-03 21:29:25 +11:00
Oliver Walters
083dac1300
Merge remote-tracking branch 'inventree/master' into build-fixes
2020-11-03 21:26:39 +11:00
Oliver
1c503adced
Merge pull request #1026 from eeintech/user_unique_group_validation
...
Added check for multiple groups assigned to user
2020-11-03 21:21:08 +11:00
Oliver
ef2c04baa8
Merge pull request #1048 from eeintech/related_parts
...
Related Parts
2020-11-03 21:18:27 +11:00
Oliver Walters
897d9b4831
Update translation files
2020-11-03 21:02:31 +11:00
Oliver Walters
5988e847ce
Add serial number suggestions
2020-11-03 21:01:14 +11:00
Oliver Walters
8d0845d92b
Mark a build as "production" whenever a build output is created
2020-11-03 20:43:49 +11:00
Oliver Walters
ac03dab8de
Tweaks
2020-11-03 20:37:33 +11:00
Oliver Walters
2b91f69c7d
Fix unit tests
2020-11-03 20:19:24 +11:00
Oliver Walters
b936f67d87
Various form fixes
...
- Updating forms, a lot has changed!
2020-11-03 16:21:40 +11:00
Oliver Walters
152801f06f
Dramatic speed improvements for build completion
...
- Might still need to be a background task at some point..
2020-11-03 15:56:20 +11:00
Oliver Walters
3f03adba72
Bug fix for stock table
...
- Grouped rows were not displaying the part name
2020-11-03 15:05:13 +11:00
eeintech
13a07be728
Added PartCategoryParameterTemplate tests
2020-11-02 15:35:54 -05:00
eeintech
6320384ecb
Fixed category parameter template edit form
2020-11-02 15:05:37 -05:00
eeintech
43fab8a8b3
Backtracked on setting category choices (fixed failed migration)
2020-11-02 13:28:34 -05:00
eeintech
34b784d1e4
Added setting, checkbox (PartCreateView only) and hook to create part parameters from category templates
2020-11-02 13:14:31 -05:00
eeintech
978b5f869d
Added checkbox to add parameter template to all categories
2020-11-02 12:20:29 -05:00
Oliver Walters
05613b9642
Further build tweaks / improvements
2020-11-02 23:47:36 +11:00
Oliver Walters
f5d0d54ded
Improve modal error message
2020-11-02 23:02:02 +11:00
Oliver Walters
500da8099b
Add forms / views for creating a new build output, and completing the build
...
- Also some refactoring of how forms are handled and saved
2020-11-02 22:56:26 +11:00
Oliver Walters
b02c87ea50
Lots of work towards multiple build output
2020-11-02 01:24:31 +11:00
Oliver Walters
f1b83f1c17
Update fixtues for unit testing
2020-11-01 15:34:42 +11:00
eeintech
3a347fba21
Added edit/delete for category parameter templates
2020-10-31 12:55:52 -05:00
eeintech
2a563d7370
Added category list of parameter templates table to settings
2020-10-31 09:18:33 -05:00
eeintech
3e5d8d2b2d
Added form to select category in settings and update context data
2020-10-31 08:35:47 -05:00
eeintech
5310ce8465
First step into managing Category Parameters to InvenTree settings
2020-10-30 17:17:18 -05:00
eeintech
34ff05d66e
Created PartCategoryParameterTemplate model and admin interface
2020-10-30 16:09:27 -05:00
Oliver Walters
95fadf1300
Update unit testing
2020-10-30 23:08:12 +11:00
Oliver Walters
3a702266e6
Merge remote-tracking branch 'inventree/master' into build-fixes
...
# Conflicts:
# InvenTree/InvenTree/views.py
# InvenTree/build/views.py
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
# InvenTree/order/views.py
# InvenTree/part/api.py
# InvenTree/part/views.py
# InvenTree/templates/js/bom.js
2020-10-30 22:44:25 +11:00
Oliver
ad90adbc04
Merge pull request #1095 from SchrodingersGat/forms
...
Refactor how form errors are handled
2020-10-30 22:12:45 +11:00
Oliver Walters
1caa341f8e
Fixes for unit tests
2020-10-30 21:34:56 +11:00
Oliver Walters
e049ca1a85
More refactoring
2020-10-30 16:54:05 +11:00
Oliver Walters
c533f59405
Refactor how form errors are handled
...
- Use form.add_error (as the django gods intended)
2020-10-30 16:04:56 +11:00
Oliver Walters
cabbdbb5cf
Fixed a typo in bom.js
2020-10-30 15:53:13 +11:00
Oliver
fb28204dfd
Merge pull request #1093 from SchrodingersGat/bom-filters
...
Add filtering for BOM table
2020-10-30 12:45:46 +11:00
Oliver Walters
2428e77969
Add filtering for BOM table
2020-10-30 11:45:54 +11:00
Oliver Walters
5c5641d884
Update calls to post_save
2020-10-30 10:12:42 +11:00
Oliver Walters
2d583d19c2
Adds function to duplicate a BOM from a parent part
...
- Improves form validation workflow
- More 'djangoesque'
2020-10-30 10:08:06 +11:00
Oliver Walters
90cfb3496a
Merge remote-tracking branch 'inventree/master' into build-fixes
...
# Conflicts:
# InvenTree/locale/de/LC_MESSAGES/django.mo
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
# InvenTree/templates/js/bom.js
2020-10-29 15:23:51 +11:00
Oliver Walters
1d6d1121a7
Add some more icons
2020-10-29 13:58:05 +11:00
Oliver Walters
f1a7ac3187
Add icon badges to bom.js
2020-10-29 13:26:32 +11:00
Oliver Walters
fda0bff14c
Tweaks to part.js
2020-10-29 13:20:42 +11:00
Oliver Walters
8246e9c802
Add function makeIconBadge for tables
...
- Add filters for part variants table
2020-10-29 13:18:45 +11:00
Oliver Walters
b3ac261746
Add filter for supplier part table:
...
Filter by "active" status
2020-10-29 12:50:17 +11:00
Oliver Walters
60a8ef723b
Simplify display of possible conflicting parts
...
- Round to single digit
- Only show 5 closest matches
(cherry picked from commit ed8be5225d
)
2020-10-29 12:42:38 +11:00
Oliver Walters
05ce17f8df
Tweaks
2020-10-29 09:45:42 +11:00
Oliver Walters
a263d2fdcd
Fixes for "auto allocate" concept
2020-10-29 00:49:01 +11:00
Oliver Walters
551064b3a4
Bugfix: BOM API now works slightly differently
2020-10-29 00:07:51 +11:00
Oliver Walters
544b63cac5
Merge remote-tracking branch 'inventree/master' into build-fixes
...
# Conflicts:
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
2020-10-29 00:01:10 +11:00
Oliver Walters
4a7e9a2278
Update translations and PEP fixes
2020-10-28 23:59:18 +11:00
Oliver Walters
ed8be5225d
Simplify display of possible conflicting parts
...
- Round to single digit
- Only show 5 closest matches
2020-10-28 23:48:35 +11:00
Oliver Walters
091a9d9803
Refactor how form errors are handled
...
- When in doubt, refer to the django docs
- There was a *much* better way (thanks, form.add_error)!
- The anti-pattern was deleted, and lo, there was much rejoicing
- Some other refactoring too
2020-10-28 23:33:33 +11:00
Oliver Walters
d8ada930c8
More template updates
...
- Add icons to more action buttons
2020-10-28 22:37:58 +11:00
Oliver Walters
d06b4d7c9f
Merge remote-tracking branch 'inventree/master' into build-fixes
...
# Conflicts:
# InvenTree/InvenTree/urls.py
# InvenTree/locale/de/LC_MESSAGES/django.mo
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
# InvenTree/part/templates/part/bom.html
# InvenTree/templates/js/build.js
# InvenTree/templates/js/table_filters.js
# InvenTree/templates/stock_table.html
# tasks.py
2020-10-28 22:25:14 +11:00
Oliver Walters
44010fe05b
Translation updates
2020-10-28 18:30:50 +11:00
Oliver Walters
d0b7d91ca4
Update multiple templates with fontawesome icons
2020-10-28 18:30:38 +11:00
Oliver Walters
d272eec384
Update translation files
2020-10-28 18:13:19 +11:00
Oliver Walters
5e70d8df7e
Rename javascript files from .html to .js
2020-10-28 18:13:02 +11:00
Oliver Walters
c63480c65b
Improve table for displaying what parts a particular part is "used in"
2020-10-28 18:12:38 +11:00
Oliver Walters
3ec2396ec1
Updated allocation card view
2020-10-27 23:33:51 +11:00
Oliver Walters
22a5f921b8
Auto-generate build outputs when a build is created
2020-10-27 23:09:17 +11:00
Oliver Walters
170d55d64e
Add custom form validation step
2020-10-27 22:52:01 +11:00
Oliver Walters
4055a36db2
Updated modal forms
2020-10-27 22:29:34 +11:00
Oliver Walters
646fe40950
Require either serial or batch number to be set for trackable part
2020-10-27 22:00:38 +11:00
Oliver Walters
54d5d2899e
Update javascript callbacks
2020-10-27 21:47:24 +11:00
James Newlands
c61eeca3e4
Even though nothing happened to the database schema, the field description changed
2020-10-27 15:58:05 +11:00
James Newlands
8bf281e153
Fix typo in new / edit part forms ("extenel URL")
...
Capitalisation consistency in "Create New Part" form title
2020-10-27 14:52:31 +11:00
Oliver Walters
06a3899325
Disable "unallocate" button if there are not any allocations
2020-10-27 09:26:16 +11:00
Oliver Walters
b5e1d3f87a
Sorter fixes
2020-10-27 08:58:29 +11:00
Oliver Walters
4167e1fdb3
Update translation files
2020-10-26 22:51:57 +11:00
Oliver Walters
210d39c8b7
Bug fix - re-introduce settings_value custom tag
...
(cherry picked from commit 9203f541be
)
2020-10-26 22:44:49 +11:00
Oliver Walters
d8a0ab8879
Fix for build table
2020-10-26 22:44:24 +11:00
Oliver Walters
9203f541be
Bug fix - re-introduce settings_value custom tag
2020-10-26 22:44:16 +11:00
Oliver Walters
a4f6efc05d
Merge remote-tracking branch 'inventree/master' into build-fixes
...
# Conflicts:
# InvenTree/locale/de/LC_MESSAGES/django.po
# InvenTree/locale/en/LC_MESSAGES/django.po
# InvenTree/locale/es/LC_MESSAGES/django.po
# InvenTree/templates/js/build.html
2020-10-26 22:38:43 +11:00
Oliver Walters
b38fde85f2
Added some more buttons, etc
2020-10-26 22:34:40 +11:00
Oliver Walters
5e0d1fe25a
Allocate "non tracked" parts separately from tracked ones
2020-10-26 18:21:45 +11:00
Oliver Walters
7525bc2ead
Attachment functionality for BuildOrder
2020-10-26 17:00:31 +11:00
Oliver Walters
664dd0000c
Add database table for storing file attachments against a BuildOrder
2020-10-26 15:21:03 +11:00
Oliver Walters
8f108d42d2
Add ability to filter BOM status by "validated" field
2020-10-26 14:43:43 +11:00
Oliver Walters
24ab48ef4c
Filter BOM table by "trackable" status
2020-10-26 13:53:34 +11:00
Oliver Walters
1a4eb3f870
Display which parts are "trackable" in a BOM table
2020-10-26 13:24:17 +11:00
Oliver Walters
815d4bf7eb
Add new template_tag for defining variables
2020-10-26 09:11:25 +11:00
Oliver Walters
ffe15763a7
Update validation "rules" for BuildItem
...
- A BuildItem which points to a trackable part must also point to a build output
- A BuildItem which points to a non-trackable part cannot point to a build output
2020-10-26 08:34:17 +11:00
Oliver Walters
6aaf178f0b
Check "trackable" status of part
...
- Where a BomItem connects a trackable sub_part with a non-trackable part, force the Part to be trackable
2020-10-26 08:29:06 +11:00
Oliver Walters
e978e1df52
Style fixes
2020-10-25 22:11:24 +11:00
Oliver Walters
5908890726
Create setting if it does not exist
2020-10-25 22:07:11 +11:00
Oliver Walters
549f50ac3f
Update translations
2020-10-25 21:54:53 +11:00
Oliver Walters
9284837da8
Bug fixing
2020-10-25 21:45:37 +11:00
Oliver Walters
7d95faa4f5
Cleanup code
2020-10-25 21:43:33 +11:00
Oliver Walters
432ecc1d96
Display boolean values as checkboxes
2020-10-25 21:33:13 +11:00
Oliver Walters
3a325399c6
Use a checkbox input when editing a boolean setting
2020-10-25 21:00:06 +11:00
Oliver Walters
f1e8afa314
Add boolean validator
2020-10-25 09:36:58 +11:00
Oliver Walters
73296eafcb
Update translation files
2020-10-25 08:18:33 +11:00
Oliver Walters
4d96b385b1
Add page for global settings
2020-10-25 08:17:41 +11:00
Oliver Walters
b57a78dea4
Add some context data to the view for editing a setting
2020-10-25 08:10:52 +11:00
Oliver Walters
e3f5e8fbb1
PEP fixes
2020-10-25 08:04:04 +11:00
Oliver Walters
3e17bf3316
Edit setting directly
2020-10-25 08:02:46 +11:00
Oliver Walters
10758a9626
Improvements for global settings
...
- Name and description are defined in models.py
- Lookup functions for name / description / units / default
- Shortcut template for rending settings
- More unit testing
2020-10-25 07:49:38 +11:00
Oliver Walters
767ceed698
Update translation files
2020-10-24 22:13:40 +11:00
Oliver Walters
c63a09330f
Hide some buttons if row is fully allocated already
2020-10-24 22:05:19 +11:00
Oliver Walters
42c1210fba
Calculate required build quantity
2020-10-24 13:16:43 +11:00
Oliver Walters
a3265ef9fd
Unallocate stock against a particular line item
2020-10-24 13:15:13 +11:00
Oliver Walters
b7e7543be6
Add some more buttons to build table
2020-10-24 12:59:05 +11:00
Oliver Walters
b45a11aa3d
Refactor: Add "makeIconBadge" javascript function
2020-10-24 00:33:30 +11:00
Oliver Walters
ea7b1b65d6
Delete a build output entirely
...
TODO: Needs to describe in the confirmation dialog what is going to happen!
2020-10-24 00:14:27 +11:00
Oliver Walters
a71a51b848
Build can be "unallocated" against a single build output
2020-10-23 23:52:59 +11:00
Oliver Walters
fb7d9a7edf
Move "getAvailableStockItems" to the build model
2020-10-23 23:33:27 +11:00
Oliver Walters
0752df26dc
Bug fixes for BuildItemCreate view:
...
- Add option to calculate required quantity against a particular build output, not just the build
2020-10-23 23:09:22 +11:00
Oliver Walters
076d5c4f7f
Cleanup get_required_parts function
2020-10-23 22:49:46 +11:00
Oliver
5e63ccc9f6
Merge pull request #1043 from eeintech/unique_email_company
...
[Company] Allow duplicate names - Unique name/email pair
2020-10-23 13:23:48 +11:00
Oliver
cd4cb12937
Merge pull request #1064 from eeintech/company_permissions
...
Company permissions
2020-10-23 13:20:59 +11:00
eeintech
647182237e
Merge branch 'master' of git://github.com/inventree/InvenTree into unique_email_company
2020-10-22 12:05:22 -05:00
Oliver Walters
5db043ab4b
Launch modal dialog to auto-allocate against a specific build output
2020-10-23 01:05:59 +11:00
Oliver Walters
f4f6253178
Better table sorting for allocation quantity
2020-10-23 00:58:35 +11:00
Oliver Walters
33c454ed5a
Add action buttons to each build output
2020-10-23 00:51:01 +11:00
Oliver Walters
6245d65ebc
Tweaks
2020-10-23 00:08:40 +11:00
Oliver Walters
23ac83d2a8
Change extension on "dynamic" js files
...
- Yay, the editor now highlights code properly!
2020-10-22 23:59:21 +11:00
Oliver Walters
ae20db0ec6
Add actions for the sub-table allocation list
2020-10-22 23:57:07 +11:00
Oliver Walters
d37cdd8e50
Improved filtering for stockitems going into a buildallocation
2020-10-22 23:49:23 +11:00
Oliver Walters
fae516b38e
Add build output selection to builditem creation form
2020-10-22 23:28:15 +11:00
Oliver Walters
1ca08f8bff
Filter builditem API by 'output' stock item
2020-10-22 21:43:53 +11:00
eeintech
9131edc43d
Company index: swapped 'title' for 'pagetype' for adding company button
2020-10-21 09:34:49 -05:00
eeintech
1ef21700c0
Fixed Part notes template (check for NULL value before mardown render)
2020-10-21 09:26:07 -05:00
Oliver Walters
f989d3b3ec
Change to using spinner icon
2020-10-21 17:02:04 +11:00
eeintech
46b889c572
Assigned all user permissions for company tests
2020-10-20 14:52:34 -05:00
eeintech
de65e1631d
Updated company templates permissions
2020-10-20 14:46:10 -05:00
eeintech
39eddc7203
Added user permissions on company views
2020-10-20 14:11:40 -05:00
Oliver Walters
96277edcf1
Improvements to progress bar function
2020-10-21 00:49:17 +11:00
Oliver Walters
8ae16a125e
Build - Add functions to access build outputs
2020-10-21 00:24:55 +11:00
Oliver Walters
e02536071d
Add a "completed" field to the Build model
...
- Keeps track of how many outputs have been produced
- Will not be directly editable by the user
2020-10-20 23:59:37 +11:00
Oliver Walters
fd6d630037
Improve grouping in Stock table
2020-10-20 23:45:36 +11:00
eeintech
5793839a01
Added UniqueConstraint on name/email pair, renamed migration file
2020-10-20 07:37:07 -05:00
Oliver Walters
3bb247a135
Create an initial stockitem output when a new build is created
2020-10-20 23:27:43 +11:00
eeintech
7bc925d016
Merge branch 'master' of git://github.com/inventree/InvenTree into unique_email_company
2020-10-20 07:19:48 -05:00
Oliver Walters
652c2dbcbe
Automagically disable 'serial_numbers' field for StockItemCreate form
...
- Yay, ajax magic!
2020-10-20 22:37:55 +11:00
Oliver Walters
2e4613e702
Updates to build forms / etc
2020-10-20 22:37:21 +11:00
Oliver Walters
2df0f03a9a
Change "ALLOCATED" to "PRODUCTION"
2020-10-20 21:10:36 +11:00
Oliver Walters
ac79e131bc
Add "destination" field to BuildOrder
2020-10-20 21:01:51 +11:00
Oliver Walters
28460b3023
Validate that the BuildItem quantity is an integer
2020-10-20 20:42:29 +11:00
Oliver Walters
fdcef7b699
Add "install_into" field for BuildItem
...
- Points to which output stock item it will be going into
2020-10-20 20:37:57 +11:00
Oliver Walters
4193d2e7fe
Except IntegrityError
...
- This error may be thrown if the correct migrations have not been applied
2020-10-20 19:52:04 +11:00
Oliver Walters
73a1765a11
Fix table sorting when groups are used.
...
This is necessary because the field names of the tables are specified like "part_detail.IPN" and multi-level string-based object access is weird.
Luckily someone has worked out the hard part for me.
Ref: https://stackoverflow.com/questions/6393943/convert-javascript-string-in-dot-notation-into-an-object-reference
2020-10-20 11:54:54 +11:00
Oliver Walters
a2ee172058
Updates tables for PurchaseOrder and SalesOrder
2020-10-20 08:45:17 +11:00
Oliver Walters
5a6697866f
Update translations
2020-10-20 08:41:13 +11:00
Oliver Walters
406d7bcf80
Load build order prefix setting
2020-10-20 08:41:08 +11:00
Oliver Walters
7aa473712f
Remove unused setting page
2020-10-20 08:32:00 +11:00
Oliver Walters
226a91718b
Add a simple unit test for the settings model
2020-10-20 08:29:06 +11:00
Oliver Walters
c6e61c20fe
Generate default settings for all InvenTreeSetting object
2020-10-20 08:24:23 +11:00
Oliver Walters
98d20bceeb
Change "Build Title" to "Description"
2020-10-20 00:26:26 +11:00
Oliver Walters
e8a0095e50
Add some options for the build order settings page
...
- Not editable yet
2020-10-20 00:24:33 +11:00
Oliver Walters
a5639c380f
Add regex validator to build order reference field
2020-10-20 00:13:43 +11:00
Oliver Walters
06040f94ee
Remove "description" field from InvenTreeSettings key:value fields
2020-10-20 00:02:54 +11:00
Oliver Walters
92c1e3c1a5
Update settings pages
2020-10-19 23:50:39 +11:00
Oliver Walters
c13cee2407
Fixes for unit testing
2020-10-19 23:31:52 +11:00
Oliver Walters
9b7a9a3ee0
Update formatting of order pages
2020-10-19 23:23:16 +11:00
Oliver Walters
b5d15aab08
Add function to "predict" next build order reference value
2020-10-19 23:22:09 +11:00
Oliver Walters
5405ad566e
Add 'reference' to API serializer
2020-10-19 22:53:40 +11:00
Oliver Walters
0b7cf9e7f3
Add "reference" to build order forms
2020-10-19 22:49:28 +11:00
Oliver Walters
a8d47c54f9
Upate admin interface
2020-10-19 22:40:19 +11:00