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