Commit Graph

2066 Commits

Author SHA1 Message Date
Oliver Walters
725eb3c538 Do not duplicate images when copying a part
- Simply reference the existing image
2020-02-10 23:04:58 +11:00
Oliver Walters
17c10da10e Display existing images in a form 2020-02-10 22:57:36 +11:00
Oliver Walters
a82e219336 Add translatable strings for part views 2020-02-10 22:10:06 +11:00
Oliver Walters
1327c1d3b1 Add API endpoint for querying part images 2020-02-10 22:03:06 +11:00
Oliver Walters
66c1a2ef57 test fix 2020-02-10 21:36:57 +11:00
Oliver Walters
cb29ff14e0 Change auto_now field to auto_now_add
- Build creation date should no longer get erroneously updated
2020-02-10 21:34:41 +11:00
Oliver Walters
4bd4f2a0a3 Fix for bug b)
- Don't attempt to save if there are duplicates
- Fix overwritten variable name
- Provide correct return data to the form
2020-02-06 23:22:55 +11:00
Oliver Walters
2949289fab Fix for bug a)
- Would not create new StockItem for trackable part if Serial Numbers not provided
2020-02-06 23:11:47 +11:00
Oliver Walters
41336bd549 Fixes 2020-02-03 21:28:47 +11:00
Oliver Walters
d059aff4f8 Use the part_deep_copy setting to set the default deep_copy value when duplicating a part 2020-02-03 21:14:06 +11:00
Oliver Walters
9cef038d6a IPN must match regex validator (if one is provided) 2020-02-03 21:09:24 +11:00
Oliver Walters
356b6cf15b Load default settings on InvenTree launch 2020-02-03 20:51:53 +11:00
Oliver
4b8e44bc4a
Merge pull request #632 from SchrodingersGat/database-stats
Database stats
2020-02-02 22:18:32 +11:00
Oliver Walters
ef7fca5633 PEP fixes 2020-02-02 22:15:46 +11:00
Oliver Walters
244d364575 Display some basic stats 2020-02-02 22:13:10 +11:00
Oliver Walters
aa210efad6 Simple skelton for database stats view 2020-02-02 22:03:31 +11:00
Oliver Walters
91ca37c84b Add stats link to navbac
- Also add translation layer for the navbar
2020-02-02 21:51:23 +11:00
Oliver Walters
d0a7a24649 Add translatable strings 2020-02-02 21:43:10 +11:00
Oliver Walters
5264f816f1 Allow PartCategory and StocKLocation names to be non-unique
- As long as they are unique in the current tree level
2020-02-02 21:40:03 +11:00
Christian Schlüter
e379b44606
Update German translation 2020-02-02 08:10:48 +01:00
Oliver
a022b8223e
Update version.py 2020-02-02 12:46:42 +11:00
Oliver Walters
1a32e441b7 Add //TODO entry in stock tabs 2020-02-02 12:42:35 +11:00
Oliver Walters
20273f1541 Add commit date information to about window 2020-02-02 12:39:35 +11:00
Oliver Walters
f88f5a39f8 Visual fix for allocation tab 2020-02-02 12:16:31 +11:00
Oliver Walters
1bdcbd1974 Markdownify the 'notes' field for StockItem
- New tab interface for the StockItem page
- Display / editing of notes field with markdown
2020-02-02 12:11:18 +11:00
Oliver Walters
908e2ef8bc Add glyphicon for company notes 2020-02-02 11:54:09 +11:00
Oliver Walters
0f92468462 Add icon to signify if notes exist 2020-02-02 11:48:43 +11:00
Oliver Walters
7ec194a14a Markdownify the notes field for PurchaseOrder
- Update model field
- Create tab view for PO page
- Add 'notes' tab
2020-02-02 11:44:44 +11:00
Oliver Walters
a7846940c4 Markdownify the notes field for Build model 2020-02-02 00:00:19 +11:00
Oliver Walters
51fab36074 Display / editing for Company notes field
- Also includes some translation updates
2020-02-01 23:45:28 +11:00
Oliver Walters
ca9f9e047c Make company notes field markdownable 2020-02-01 23:31:45 +11:00
Oliver Walters
1f71a93d88 Fix page formatting 2020-02-01 23:26:54 +11:00
Oliver Walters
88ec40e454 Fix success_url for notes form 2020-02-01 22:25:35 +11:00
Oliver Walters
f0933f216c PEP fixes 2020-02-01 17:29:58 +11:00
Oliver Walters
919662054c Alter markdownify settings to properly render images, headings 2020-02-01 14:49:28 +11:00
Oliver Walters
b9dda51378 Side-by-side live editing for markdown 2020-02-01 14:40:11 +11:00
Oliver Walters
3c3ae43c18 Add special view for displaying / editing notes field for part 2020-02-01 13:36:09 +11:00
Oliver Walters
c546ed5dcd Update requirements
- Use markdownify for rendering
- Use markdownx for editing
2020-01-31 21:42:30 +11:00
Oliver Walters
da01177d23 Blank 'notes' page for Part model 2020-01-31 20:38:29 +11:00
Oliver Walters
aa2f63830e Translation template for part attachments page 2020-01-31 20:37:54 +11:00
Oliver Walters
596d06cf1a Add a markdown editor for the 'Notes" field of Part model
https://github.com/timmyomahony/django-pagedown
2020-01-31 20:28:54 +11:00
Oliver Walters
bd653f2c49 Some more unit tests 2020-01-07 21:16:01 +11:00
Oliver Walters
a064ce13fc PEP fixes 2020-01-06 20:51:12 +11:00
Oliver Walters
e103bd8880 Write unit test for PurchaseOrder receive views 2020-01-06 20:50:16 +11:00
Oliver Walters
61897cb0fc Updated translation files 2020-01-06 09:24:29 +11:00
Oliver Walters
067d2be1f0 Bug fix - receiving lines against a PO caused issues due to integer/Decimal conversion 2020-01-06 09:23:13 +11:00
Oliver Walters
740d7678d7 Update translation files 2020-01-06 08:57:13 +11:00
Oliver Walters
b3ec748123 Display current stock item quantity in stock-adjust modal form 2020-01-06 08:52:28 +11:00
Oliver
d2d5909701
Merge pull request #601 from SchrodingersGat/trailing-fix
Trailing fix
2020-01-02 20:32:16 +11:00
Oliver Walters
43d47686c5 Style fixes 2020-01-02 20:27:07 +11:00
Oliver Walters
dae74a19d3 Fix logic for decimal string helper 2020-01-02 20:25:59 +11:00
Leon Schnieber
720485709b Applied suggestions and corrected typos 2019-12-20 13:33:34 +01:00
Leon Schnieber
17c048e8dd added german translation 2019-12-19 17:51:42 +01:00
Leon Schnieber
a0534dafec added german translation 2019-12-19 17:47:15 +01:00
Oliver Walters
6cd3b3176c Regenerate translation files
- Also fix documentation for making a virtual envirtonment
2019-12-09 22:17:21 +11:00
Oliver Walters
fafd0397bc remove defunct file 2019-12-09 21:56:26 +11:00
Oliver Walters
71c1faf9ff Use the client-side PO table in more places 2019-12-09 21:55:00 +11:00
Oliver Walters
a257f94ac0 Use client-side rendering for list of purchase orders 2019-12-09 21:33:27 +11:00
Oliver Walters
25e5a64cee Improve filtering / ordering / sorting for purchase-order API 2019-12-09 21:19:35 +11:00
Oliver Walters
5e9b012031 Bug fix for static lookup of blank image 2019-12-09 20:40:04 +11:00
Oliver Walters
1a6f06cceb normalize decimal fields 2019-12-06 22:40:27 +11:00
Oliver
9946fbda17
Merge pull request #585 from SchrodingersGat/tweaks
Reload page after ordering parts
2019-12-05 14:28:34 +11:00
Oliver Walters
98374ca466 Update to more recent libraries
- Specify exact module versions
2019-12-05 14:12:05 +11:00
Oliver Walters
2152cb14b4 Add translation files 2019-12-05 10:29:23 +11:00
Oliver Walters
7f2804dff3 Add button to mark a purchase order as complete, even if not all line items are received 2019-12-05 10:29:16 +11:00
Oliver Walters
3f172cb065 Add 'new location' button when receiving parts by individual line 2019-12-05 09:12:37 +11:00
Oliver Walters
cbdea9f18c Reload page after ordering parts 2019-11-29 20:37:34 +11:00
Oliver Walters
7e6c5fae62 Display units in part table 2019-11-19 10:39:40 +11:00
Oliver Walters
8b2f1b9313 Better rendering of aggregated stock count in stock table
https://stackoverflow.com/questions/11832914/round-to-at-most-2-decimal-places-only-if-necessary#12830454
2019-11-19 10:36:01 +11:00
Oliver Walters
64db28be67 Fix __str__ function to get unit tests to pass 2019-11-19 10:31:49 +11:00
Oliver Walters
381becef79 Convert some more fields to decimal
- purchase order line item quantity
- purchase order line item received
2019-11-19 10:30:04 +11:00
Oliver Walters
a1f33c4084 Change build allocation quantity to decimal field 2019-11-19 10:22:46 +11:00
Oliver Walters
dbdbe69f7f Bug fix for test cases 2019-11-19 10:19:52 +11:00
Oliver Walters
9da8189899 Allow non-integer stock movement 2019-11-19 10:17:20 +11:00
Oliver Walters
e4bfe43c04 More rendering improvements 2019-11-19 10:10:23 +11:00
Oliver Walters
003a2d9f3c Allow creation of stockitem with non-integer quantity
-  Also provided more translation strings
2019-11-19 10:00:08 +11:00
Oliver Walters
0ea8ade26c Better rendering for build allocation page
- Added translations too
2019-11-19 09:51:35 +11:00
Oliver Walters
75774771dc Changes to StockItem model
- Stock adjustments need to accept decimal values
2019-11-19 09:18:41 +11:00
Oliver Walters
20755a6dac Rendering of decimal value on stockitem page 2019-11-19 09:10:47 +11:00
Oliver Walters
4e1b9efe93 Fix javascript rendering of decimal quantity in BOM table 2019-11-19 09:08:17 +11:00
Oliver Walters
6e90ac367e Massaging unit tests
- Decimal fields are useful but VERY ANNOYING to use
- Needed to fix some test cases
2019-11-19 08:59:56 +11:00
Oliver Walters
400941c10f Change item quantity field from PositiveInteger to Decimal
- Allow 'partial' quantity e.g. '0.45kg'
- Need to change some maths functions as Decimal type is pernickity
2019-11-19 08:49:54 +11:00
Oliver Walters
81a226c760 Added translation strings for stock.models 2019-11-19 08:46:25 +11:00
Oliver Walters
5ffbfe8eb8 Add translation strings for part models 2019-11-19 08:42:10 +11:00
Oliver Walters
16f3dfb678 Removed old migration file 2019-11-16 20:39:10 +11:00
Oliver Walters
b7473be8ef Update stock adjustment dialog 2019-11-16 20:29:05 +11:00
Oliver Walters
2261973331 Ability to delete multiple stock items 2019-11-16 20:19:10 +11:00
Oliver Walters
789515e39d Add translations for the StockItem detail page 2019-11-16 20:14:08 +11:00
Oliver Walters
0effb584b9 Remove 'active' field
- Will work this change in at a later date
2019-11-16 20:13:51 +11:00
Oliver Walters
339126b27a Add new field "active" to StockItem model
- True by default
- Set to 'false' to mark a stockitem as 'deleted'
2019-11-16 19:41:36 +11:00
Oliver Walters
56255a98d8 Add a menu item to delete multiple stock items 2019-11-16 19:28:47 +11:00
Oliver Walters
1887463f7f Properly display 'notes' field in grouped rows for stock table 2019-11-04 21:55:48 +11:00
Oliver Walters
d1c7877713 Add unit test for CompanyIndex 2019-09-30 13:44:19 +10:00
Oliver Walters
be96a2f7e3 Add some unit tests 2019-09-30 13:39:56 +10:00
Oliver Walters
871b853b9f Single form to delete single or multiple SupplierPart objects 2019-09-30 13:28:51 +10:00
Oliver Walters
ab25a199ce Bug fix - secondary modals not working correctly 2019-09-27 21:00:27 +10:00
Oliver Walters
b870728125 Add translation hooks for part detail template 2019-09-27 10:12:46 +10:00
Oliver Walters
427f47310b Add detail pane to top-level part view 2019-09-27 10:04:20 +10:00
Oliver Walters
3e2a5263a5 Add stock information for top-level stock page 2019-09-27 09:59:14 +10:00
Oliver Walters
f2eb66d854 Update readme file and scripts 2019-09-26 10:37:39 +10:00
Oliver Walters
fcba00bc69 Check for altered translation files that have not been compiled 2019-09-26 10:32:44 +10:00
Oliver Walters
9be528a3fb Add (brief) documentation page regarding translations 2019-09-26 10:07:18 +10:00
Oliver Walters
40acf90efe Add some initial (empty) translation files 2019-09-26 09:59:50 +10:00
Oliver Walters
3cc79d6def Add default language option to config.yaml 2019-09-26 09:56:41 +10:00
Oliver Walters
0e0405f337 Update settings.py to enable translations 2019-09-26 09:55:45 +10:00
Oliver
fb75617807
Update version.py 2019-09-24 08:08:42 +10:00
Oliver Walters
7c1615a2b6 Fix user recording when serializing stock 2019-09-24 07:59:59 +10:00
Oliver Walters
41c07fc423 Save user who created a stock item
- Handled differently for batch or serialized parts
2019-09-24 07:54:18 +10:00
Oliver Walters
52ec213a28 Save user information when creating a new purchase order 2019-09-24 07:43:14 +10:00
Oliver Walters
b1380687e6 PEP 2019-09-23 19:31:50 +10:00
Oliver Walters
8d92960f10 Ability to receive PO lines items individually 2019-09-23 19:31:18 +10:00
Oliver Walters
0d68dbcfa7 Display which lines have been received against a PO 2019-09-23 19:05:22 +10:00
Oliver Walters
21e369e6cc Update ReceivePurchaseOrder form
- Location field is now a proper MPTT field
- Ability to create a new location
2019-09-23 19:02:36 +10:00
Oliver Walters
ae2e2f36e4 Update a bunch more tables 2019-09-22 22:18:53 +10:00
Oliver Walters
2046c12600 Use a jQuerified function 2019-09-22 21:56:57 +10:00
Oliver Walters
df41fafefb Update page table 2019-09-22 21:42:51 +10:00
Oliver Walters
8eaff6a353 Add wrapper function around bootstrapTable 2019-09-22 21:37:20 +10:00
Oliver Walters
fcbf0e6e93 Create UI elements to cancel an order
- View
- Form
- Template
- Button
- Javascript
2019-09-20 11:52:38 +10:00
Oliver Walters
6f54091354 Improve display of stock location 2019-09-20 00:03:59 +10:00
Oliver Walters
5a9e5dea20 Add sub-category and part count 2019-09-20 00:00:34 +10:00
Oliver Walters
508a3fc35c Improve display of part category page 2019-09-19 23:59:01 +10:00
Oliver Walters
b3ea2bfb9a Update badges 2019-09-19 23:38:15 +10:00
Oliver Walters
3c98cd87a7 Use localStorage rather than sessionStorage for storing user prefs
- Also create some helper functions
2019-09-19 23:29:03 +10:00
Oliver Walters
cf2abb4130 Add option to display ALL results in a paginated table
- Commonize the number of pages allowed
2019-09-19 23:20:42 +10:00
Oliver Walters
8a995cc193 Ability to edit username 2019-09-19 14:36:14 +10:00
Oliver Walters
a77fd23fcf Add a reminder for future-self 2019-09-17 20:19:27 +10:00
Oliver Walters
cb77506111 Simplify 2019-09-17 20:19:05 +10:00
Oliver Walters
c5a82f4b6e Simplifty PartPriceInfo field 2019-09-17 20:17:25 +10:00
Oliver Walters
4a0be0dfb8 Simplify 2019-09-17 20:15:50 +10:00
Oliver Walters
774872e6a6 Make function atomic 2019-09-17 14:17:49 +10:00
Oliver Walters
08f958dd72 Add form for setting part category 2019-09-17 14:06:11 +10:00
Oliver Walters
94cd28ecb9 Add ability so set category for multiple parts at once 2019-09-17 13:49:57 +10:00
Oliver Walters
b5b7dc0fbf Fix tests 2019-09-17 12:29:18 +10:00
Oliver Walters
f90aa1d2cf Make purchase-order table sortable 2019-09-17 11:44:50 +10:00
Oliver Walters
1cffd41c07 Fix broken price-break buttons
- Did not work!
2019-09-17 10:54:28 +10:00
Oliver Walters
d40fc59616 Reload page after ordering part 2019-09-17 10:34:41 +10:00
Oliver Walters
a9d1cadc12 Add link to documentation 2019-09-17 00:41:28 +10:00
Oliver Walters
55ebf48684 Add more export fields for SupplierPart and SupplierPriceBreak 2019-09-16 09:43:57 +10:00
Oliver Walters
628a58e8fc Show which parts are short in build view 2019-09-16 08:23:40 +10:00
Oliver Walters
fedbb834ee Add mouse-over text to build-cancel button 2019-09-16 08:17:39 +10:00
Oliver Walters
4746a3ccff Bootstrapify the table 2019-09-15 23:11:06 +10:00
Oliver Walters
2c1a744c2d Display singleton settings in the settings tab
- Only visible to 'staff' user
2019-09-15 23:09:58 +10:00
Oliver Walters
098cd0ec44 Add description field 2019-09-15 23:07:45 +10:00
Oliver Walters
02e71bd2ce Template for displaying other settings 2019-09-15 22:50:47 +10:00
Oliver Walters
3e33326120 Add the InvenTreeSetting model
- Storage of singleton settings in key:value pairs
2019-09-15 22:46:24 +10:00
Oliver Walters
194ae49914 Export full_name for parts 2019-09-15 22:23:34 +10:00
Oliver Walters
7f5aba423a Export full_name for parts 2019-09-15 22:23:28 +10:00
Oliver Walters
db04f399c1 Simplify exporting of BOM for a part 2019-09-15 22:21:12 +10:00
Oliver Walters
ed20e9d4a1 Simplify code for exporting PurchaseOrder
- New resource for managing import/export of POLineItem model
2019-09-15 22:04:52 +10:00
Oliver Walters
204cd967aa Include status label text when exporting stocktake data 2019-09-15 20:14:27 +10:00
Oliver Walters
03043e67c7 Perform full validation when importing data 2019-09-15 19:58:05 +10:00
Oliver Walters
2d17f957f1 Remove code duplication for part data export 2019-09-15 19:52:28 +10:00
Oliver Walters
2bc97764c7 Allow more file formats for BOM import 2019-09-15 19:45:59 +10:00
Oliver Walters
9c84e9076f Consolidate stock export code
- Now defined in stock.admin as StockItemResource
- Much more control over format of exported data
- Exported data can be re-imported!
2019-09-15 19:29:18 +10:00
jmht
ce099f43f3 Fixes problem with 'New Purchase Order' button not working from Suppliers page. 2019-09-14 21:40:09 +01:00
Oliver Walters
70e07470db Custom URL validators for more fields 2019-09-14 00:08:49 +10:00
Oliver Walters
4ac8353099 Create a custom URL field, which allows the user-specified validators
- Ref: https://stackoverflow.com/questions/41756572/django-urlfield-with-custom-scheme
- Apply this to the URL field in the Part model
2019-09-14 00:04:08 +10:00
Oliver Walters
ee17d5d3c3 Allow for custom url schemes to be specified in the config file 2019-09-14 00:03:13 +10:00
Oliver
0846daf1f6
Merge pull request #524 from SchrodingersGat/import-export
Customization of django-import-export plugin
2019-09-13 23:35:57 +10:00
Oliver Walters
8578a3b8d1 Add searching to other admin views 2019-09-13 23:32:49 +10:00
Oliver Walters
9b1d0bee3b Add filtering and searching to Part admin 2019-09-13 23:27:22 +10:00
Oliver Walters
28d49bdd47 PEP 2019-09-13 23:19:12 +10:00
Oliver Walters
6a19e94feb Include some extra calculated fields for Part export (readonly) 2019-09-13 23:15:34 +10:00
Oliver Walters
52eeffc2c4 Change more models to use ImportExportModelAdmin 2019-09-13 23:05:16 +10:00
Oliver Walters
f707dd3430 Currency model admin now supports import / export 2019-09-13 23:02:54 +10:00
Oliver Walters
cb5db332d3 Manager for import/export of StockItem data 2019-09-13 23:00:21 +10:00
Oliver Walters
23b814569a Manager for importing StockLocation data 2019-09-13 22:44:50 +10:00
Oliver Walters
37ab3d214d Import/export management for the Company app
- Company
- SupplierPart
- SupplierPriceBreak
2019-09-13 22:39:15 +10:00
Oliver Walters
c579854e89 Export 'default_supplier' field 2019-09-13 22:29:11 +10:00
Oliver Walters
2bc34853e2 import/export manager for PartParameter 2019-09-13 22:27:32 +10:00
Oliver Walters
c469e48f26 Data manager for BomItem 2019-09-13 22:23:40 +10:00
Oliver Walters
bacd70687d Management class for PartCategory import / export 2019-09-13 22:20:08 +10:00
Oliver Walters
89acc778f5 Skip unchanged lines for matching ID values 2019-09-13 22:11:31 +10:00
Oliver Walters
ac36048230 Improve import/export of Part
- Can now import part data
- Either UPDATE existing rows, or CREATE new ones
2019-09-13 22:08:31 +10:00
Oliver Walters
8a68313e5e Customize admin export of Part object 2019-09-13 21:39:37 +10:00
Oliver
9e1f56cdb8
Merge pull request #522 from SchrodingersGat/order-improvements
Order improvements
2019-09-13 21:16:47 +10:00
Oliver Walters
7e9c095edb Ok, fixed now 2019-09-13 21:14:00 +10:00
Oliver Walters
588713467d Fixed unit tests 2019-09-13 21:07:32 +10:00
Oliver Walters
c8be9cb90c Display template badge in part table 2019-09-13 20:58:17 +10:00
Oliver Walters
36ec5e41b0 Cleanup 2019-09-13 20:53:04 +10:00
Oliver Walters
59f102af3c Database filtering beats list comprehension! 2019-09-13 20:15:34 +10:00
Oliver Walters
6854190ff9 Simple test for POLineItemedit view 2019-09-13 20:10:17 +10:00
Oliver Walters
d515e2d968 Tests for POLineItem creation form 2019-09-13 20:01:41 +10:00
Oliver Walters
7c6901f445 Tests for purchas order issue form 2019-09-13 18:15:05 +10:00
Oliver Walters
567826165c Improve BomItem editing form
- Don't allow duplication of an item already in the BOM
- Remove the parent part from the BOM
2019-09-13 16:26:44 +10:00
Oliver
8fcc1b8448
Update version.py
Bumped to v0.0.6
2019-09-13 15:54:12 +10:00
Oliver Walters
17e91493ea Bug fix for order-parts form
- Check for parts already existing in PO must filter by the purchase order ID in addition to the part ID
2019-09-13 15:32:52 +10:00
Oliver Walters
8716281f7e Add unit test for invalid characters 2019-09-13 11:15:54 +10:00
Oliver Walters
844f337d64 Fix ValidationError call for validate_tree_name function 2019-09-13 11:15:11 +10:00
Oliver
afdea818f7
Merge pull request #510 from SchrodingersGat/delete-lead-time
Remove lead-time field
2019-09-12 22:45:58 +10:00
Oliver Walters
91453094aa Remove lead-time field 2019-09-12 22:37:09 +10:00
Oliver
7326146c19
Merge pull request #509 from SchrodingersGat/delete-supplier
Hide dropdown-menu for functionality that does not yet exist
2019-09-12 22:17:53 +10:00
Oliver Walters
61d2ce67ef Hide dropdown-menu for functionality that does not yet exist 2019-09-12 22:01:18 +10:00
Oliver Walters
31625aa4bb Fix buttons for edit/delete supplier price break 2019-09-12 21:53:29 +10:00
Oliver Walters
4daf1ae8d4 Fixes for migrate target in makefile 2019-09-10 14:18:20 +10:00
Oliver Walters
4dc7da41b9 pepper 2019-09-09 20:02:52 +10:00
Oliver Walters
ddb041fe44 Filter by category too 2019-09-09 19:59:56 +10:00
Oliver Walters
776fc8b1e5 Add 'used_in' count to part export 2019-09-09 19:37:59 +10:00
Oliver Walters
8723a6c219 Add 'purchaseable' field to part export 2019-09-09 19:10:57 +10:00
Oliver
e4dcbd2fda
Update version.py
Bump version num
2019-09-09 14:25:00 +10:00
Oliver Walters
53c5324df6 Fix uniqueness test for stock item 2019-09-09 08:49:27 +10:00
Oliver Walters
fb2c347fd4 Removed unused import 2019-09-09 08:30:24 +10:00
Oliver Walters
9c988310b6 Add tests for MPTT models 2019-09-09 08:29:36 +10:00
Oliver Walters
108382cc89 Prefecth related data for stock export
- Example export reduced from 1,024 queries to 7
2019-09-09 08:17:26 +10:00
Oliver Walters
11c946be4d Export human-readable status code 2019-09-09 00:02:08 +10:00
Oliver Walters
fff42e7dbb Export stock based on part 2019-09-08 23:58:40 +10:00
Oliver Walters
231a669fe5 Export stock based on supplier 2019-09-08 23:53:09 +10:00
Oliver Walters
3d5542181a Move "Export" button onto stock table 2019-09-08 23:40:51 +10:00
Oliver Walters
8817b4d692 Icer button rendering for PurchaseOrder page 2019-09-08 23:27:54 +10:00
Oliver Walters
fa8056f4b9 Fill out supplier_part details when receiving a line for a purchase order 2019-09-08 23:15:44 +10:00
Oliver Walters
9212d6047f Add supplier information to exported data 2019-09-08 23:10:13 +10:00
Oliver Walters
cc452bc270 Export stock data 2019-09-08 23:01:16 +10:00
Oliver Walters
faf8b9f2f0 Form / view for downloading stocktake info 2019-09-08 22:37:27 +10:00
Oliver Walters
f4e71d6055 Add a buttony-boy
(cherry picked from commit 69ac5d870a2f1bc9589cd9b23212d3b51cf92c80)
2019-09-08 20:55:19 +10:00
Oliver Walters
2c969ef1c6 View for exporting stocktake / stock list
(cherry picked from commit bdad2d6178a14322ef225d08b13db86b6d7d0909)
2019-09-08 20:55:06 +10:00
Oliver Walters
026108803e More links in the about page 2019-09-08 20:48:33 +10:00
Oliver Walters
e4fc44c135 More test 2019-09-08 20:36:51 +10:00
Oliver Walters
2a203be5cc Tests for part parameters 2019-09-08 20:18:21 +10:00
Oliver Walters
dac61eafa2 Fixed tests
- Tree classes now need extra configuration in the fixture
- Check for null pk when cleaning a tree node
2019-09-08 19:41:54 +10:00
Oliver Walters
a5189b8f3f Replace a recursive function 2019-09-08 19:28:40 +10:00
Oliver Walters
0d6a3d3b28 BOM table now refreshes the table rather than the page 2019-09-08 19:24:47 +10:00
Oliver Walters
b554af5f10 Fix display of location list 2019-09-08 19:21:40 +10:00
Oliver Walters
3eb3c43e5c Change foreign keys to TreeForeignKey 2019-09-08 19:19:39 +10:00
Oliver Walters
678157aac4 Update StockLocation and PartCategory models
- Use the MPTT functionality once more
2019-09-08 19:13:13 +10:00
Oliver Walters
4d7fba9f14 Replace tree functionality with MPTT goodness 2019-09-08 18:57:48 +10:00
Oliver Walters
2f11fccb73 Migrate InvenTreeTree to using MPTT model 2019-09-08 14:08:49 +10:00
Oliver Walters
b3a5dbb5db Add django-mptt as a requirement
(cherry picked from commit 8c33a9fca11ad9af9c9f1c6ddf2a9dab8d71e2e4)
2019-09-08 14:02:30 +10:00
Oliver Walters
baf096b3e7 Ensure token validation is working correctly 2019-09-08 00:28:12 +10:00
Oliver Walters
576226ad30 Tests for retrieving user auth tokens 2019-09-07 23:41:15 +10:00
Oliver Walters
32f606627d Special display case for base currecny 2019-09-07 22:43:39 +10:00
Oliver Walters
f24496c5a2 Enforce at least one base currency to be selected 2019-09-07 22:42:08 +10:00
Oliver Walters
023c386f5e Display a warning message if delete_on_deplete is set 2019-09-07 21:18:32 +10:00
Oliver Walters
b4bbd43bae Fix 404 if a stock item is completely depleted 2019-09-07 21:15:14 +10:00
Oliver Walters
efc08f6824 Improve table sorting for company list 2019-09-07 20:47:02 +10:00
Oliver
dd5ca32e8e
Merge pull request #481 from SchrodingersGat/settings
Improve settings view
2019-09-07 20:37:03 +10:00
Oliver
daa5a32440
Merge pull request #447 from rrakso/feature/add_method_to_delete_token
Feature/add method to delete token
2019-09-07 20:36:39 +10:00
Oliver Walters
446b342480 Add pagination to tables 2019-09-07 20:32:22 +10:00
Oliver Walters
c45fcb45cf Delete a part parameter template from the settings view 2019-09-07 20:30:51 +10:00
Oliver Walters
42ade0e0b7 Edit part parameter template from settings view 2019-09-07 20:28:38 +10:00
Oliver Walters
55669c79c2 Delete a currency from the currency settings view 2019-09-07 20:22:30 +10:00
Oliver Walters
3188b0ab18 Edit currency from settings view 2019-09-07 20:19:35 +10:00
Oliver Walters
31562826f4 Add modal form for creating a new currency 2019-09-07 20:06:04 +10:00
Oliver Walters
67ea0fa887 Create a new part parameter template 2019-09-07 19:53:47 +10:00
Oliver Walters
94ab7c5b0e Display list of part parameter templates in the part settings page 2019-09-07 19:45:36 +10:00
Oliver Walters
f415e2040e API endpoint for PartParameter and PartParameterTemplate 2019-09-07 19:44:10 +10:00
Oliver Walters
13270617b9 Ensure PartParameterTemplate name is unique 2019-09-07 19:43:41 +10:00
Oliver Walters
6752bdc1c6 Sort currency API 2019-09-07 19:28:20 +10:00
Oliver Walters
873faee040 Display currency list under currency settings page 2019-09-07 19:23:58 +10:00
Oliver Walters
9726ea4f99 Add serializer / API for currency objects 2019-09-07 19:18:18 +10:00
Oliver Walters
89c3ab5e99 Formatting 2019-09-07 18:58:37 +10:00
Oliver Walters
27878d2d8d Split settings into multiple pages
- Tab style navigation
2019-09-07 18:02:03 +10:00
Oliver Walters
1b8fb4db44 Start skeleton for better settings page 2019-09-07 15:04:18 +10:00
Oliver
9a61ba4e1e
Merge pull request #479 from SchrodingersGat/hide-sellable
Hide the 'sellable' tag for now
2019-09-07 14:25:33 +10:00
Oliver Walters
9c864aa619 Hide the 'sellable' tag for now
- Keep hidden until parts can actually be sold
2019-09-07 10:51:39 +10:00
Oliver Walters
8703ee90c6 Improve grouping 2019-09-07 10:41:22 +10:00
Oliver Walters
910d9a15f6 Display batch information in stock table 2019-09-07 10:39:48 +10:00
Oliver Walters
dac1264878 Fixed unit tests 2019-09-06 12:48:31 +10:00
Oliver Walters
9bde8bde66 Tree items dispaly description in __str__ representation 2019-09-06 12:40:04 +10:00
Oliver Walters
eb378e5e5d Specify PNG image for QR code generation 2019-09-06 12:38:09 +10:00
Oliver Walters
38b88e44bd Bug fix 2019-09-05 20:22:47 +10:00
Oliver
7642a1bb7b
Merge pull request #472 from SchrodingersGat/default-loc
Add new option to move-stock form
2019-09-05 20:09:47 +10:00
Oliver Walters
7fd4359007 Add new option to move-stock form
- Set the destination as the default location for parts being moved
2019-09-05 19:59:00 +10:00
Oliver Walters
7659f2de7b Click button to validate BOM item 2019-09-05 19:34:58 +10:00
Oliver Walters
37d9c59a0e Add API endpoint for validating a BOM item 2019-09-05 19:29:51 +10:00
Oliver Walters
81f5714cb1 BOM table now displays which lines have been marked as valid 2019-09-05 14:15:58 +10:00
Oliver Walters
1ea7bdf843 Add a note 2019-09-05 13:12:49 +10:00
Oliver Walters
0508c2dcaf Use the hash for each line item to calculate the total BOM hash 2019-09-05 13:10:26 +10:00
Oliver Walters
7671eb2b22 Add a checksum field to the bom line item 2019-09-05 12:58:11 +10:00
Oliver Walters
e903c1858f PEP 2019-09-03 22:45:45 +10:00
Oliver Walters
20b37a2d11 Test fixes 2019-09-03 22:45:11 +10:00
Oliver Walters
41806089e3 Select the default currency if one is not specifically selected 2019-09-03 22:33:50 +10:00
Oliver Walters
3682e9b5fb Display currency selection in part pricing dialog 2019-09-03 22:28:53 +10:00
Oliver Walters
7314f33d6d Add currency selection field for price calculation form 2019-09-03 22:00:43 +10:00
Oliver Walters
0325f042b5 Bump version number 2019-09-03 09:59:14 +10:00
Oliver Walters
af8a96e080 Add option to edit currency 2019-09-03 09:55:15 +10:00
Oliver Walters
09cb82cdc0 Fix converted_cost
- Incompatibility between float and decimal
2019-09-03 09:46:32 +10:00
Oliver Walters
c6a435eba0 Add currency field to SupplierPriceBreak 2019-09-03 09:34:32 +10:00
Oliver Walters
9f91797f42 Simple test case for currency 2019-09-03 09:19:37 +10:00
Oliver Walters
32d09d2d37 Add default value for currency 2019-09-03 09:10:36 +10:00
Oliver Walters
7824b8561d Create a currency model 2019-09-03 09:07:03 +10:00
Oliver Walters
aeb25e4c34 startapp common 2019-09-03 08:30:14 +10:00
Oliver Walters
273412b63d Add 'bug report' button 2019-09-02 22:14:50 +10:00
Oliver Walters
f3e161564d Fix for serialization of company images 2019-09-02 22:06:42 +10:00
Oliver Walters
b0c420858b Comments for settings.py 2019-09-02 16:44:01 +10:00
Oliver Walters
906766cc0e Bug fix - ensure pk is set to None 2019-09-01 23:28:28 +10:00
Oliver Walters
7db938eda0 Show the build item on the stock-item page (if applicable) 2019-09-01 23:24:27 +10:00
Oliver Walters
c45c4e236e Point new stockitem to the correct build 2019-09-01 23:18:28 +10:00
Oliver Walters
3cef5c93ce Improve stock item splitting 2019-09-01 23:18:08 +10:00
Oliver Walters
90a342fad8 Add a reference to a build for a stock item 2019-09-01 23:09:40 +10:00
Oliver Walters
d9cc03c5ca Improve installation documentation 2019-09-01 22:16:58 +10:00
Oliver Walters
094e8cdc23 PEP 2019-08-30 00:15:16 +10:00
Oliver Walters
891f4f9f17 Another test 2019-08-30 00:14:54 +10:00
Oliver Walters
6f8c3454f3 Tests for stock serialization form 2019-08-30 00:06:46 +10:00
Oliver Walters
34bfdea4b5 Test another invalid serialization 2019-08-29 23:50:33 +10:00
Oliver Walters
ef94b41a77 Add test for api-doc view 2019-08-29 23:43:24 +10:00
Oliver Walters
e68a9c223d Fix broken api-doc page
https://www.django-rest-framework.org/community/3.10-announcement/#continuing-to-use-coreapi
2019-08-29 22:00:15 +10:00
Oliver Walters
0fba236eef Stock locations are now persistent 2019-08-29 15:52:32 +10:00
Oliver Walters
ef674061de Part category collapse is persistent 2019-08-29 15:50:48 +10:00
Oliver Walters
86b2b9cdb1 Allow unserialized build 2019-08-29 08:05:45 +10:00
Oliver Walters
937bcd41d6 Fix tests for stock serialization 2019-08-29 07:37:44 +10:00
Oliver Walters
4db345d0c2 Perfom serialization 2019-08-28 22:47:46 +10:00
Oliver Walters
76ec44d770 Form improvements 2019-08-28 22:04:04 +10:00
Oliver Walters
15b38000d5 Improved serial number extraction
- Check data types
- Translation for error messages
2019-08-28 22:03:40 +10:00
Oliver Walters
6c5b09efd4 Provide initial data 2019-08-28 21:50:44 +10:00
Oliver Walters
7575a39b7f Add form / view for serializing a stock item
- Back end doesn't do anything yet
2019-08-28 21:46:26 +10:00
Oliver Walters
3b8f5872ac Add button to serialize stock 2019-08-28 21:21:26 +10:00
Oliver Walters
43967e302b Add ablity to serialize an existing quantity of stock
- Do not have to serialize all the stock
- Add tests
- Add function to copy entire stock transaction history
2019-08-28 21:12:16 +10:00
Oskar Jaskolski
8949542baf fixed response text 2019-08-28 12:53:08 +02:00
Oskar Jaskolski
0a6abd21be fixed responde text 2019-08-28 12:47:56 +02:00
Oskar Jaskolski
3c70c3a29c clean 2019-08-28 12:41:46 +02:00
Oskar Jaskolski
981884f368 test 2019-08-28 12:40:06 +02:00
Oskar Jaskolski
5dcfc20d82 test 2019-08-28 12:39:25 +02:00
Oskar Jaskolski
381e58ab1c added import 2019-08-28 12:35:00 +02:00
Oskar Jaskolski
105b93a0e3 added method allowing to remove token 2019-08-28 12:30:31 +02:00
Oliver Walters
bc03ae53bd Changes for clean of StockItem 2019-08-28 20:01:38 +10:00
Oliver Walters
88b90281f5 Do not enforce serialization when creating a stock item 2019-08-28 19:56:35 +10:00
Oliver Walters
d5ad53c788 Add docstring 2019-08-28 19:44:46 +10:00
Oliver Walters
f94be40857 Style fixes 2019-08-28 19:44:02 +10:00
Oliver Walters
586a46175d Add modals for editing or deleting part parameters 2019-08-28 19:39:47 +10:00
Oliver Walters
51e4bdd821 URL / view for editing a PartParameter 2019-08-21 13:11:19 +10:00
Oliver Walters
e77aeec2ce Change to ImportExport model admin 2019-08-20 18:04:22 +10:00
Oliver Walters
9630c90924 Add buttons to edit/delete parameters 2019-08-20 18:01:20 +10:00
Oliver Walters
307a04da58 Add View/Form for creating a new PartParameterTemplate 2019-08-20 14:33:18 +10:00
Oliver Walters
15a42878db Improved view for creating a new part parameter
- Hide the Part input
- Reduce options based on parameters that already exist!
2019-08-20 14:28:15 +10:00
Oliver Walters
c68c79ea43 Create view / form / URL for PartParameter creation 2019-08-20 14:14:21 +10:00
Oliver Walters
db834802e3 Add uniqueness check for PartParameterTemplate name field
- Case insensitive
2019-08-20 13:08:06 +10:00
Oliver Walters
a228b38e5d Fix parameter lookup 2019-08-20 13:03:36 +10:00
Oliver Walters
e6819b5396 Change model - add PartParameterTemplate 2019-08-20 13:02:00 +10:00
Oliver Walters
6393ddad53 Add param tab to Part detail view 2019-08-20 12:44:00 +10:00
Oliver Walters
0955166fae Add admin interface for PartParameter 2019-08-20 12:43:23 +10:00
Oliver Walters
1cd0051316 Add page to display part parameters 2019-08-20 12:43:12 +10:00
Oliver Walters
2f6357b136 Add PartParameter table 2019-08-20 12:31:43 +10:00
Oliver Walters
41bfdc1432 Enforce usage of sqlite3 for running tests
- Simplifies tests by creating a database in memory
- Does not affect the user setup at all
2019-08-15 21:57:34 +10:00
Oliver Walters
9f5325d61f PEP fixes 2019-08-15 21:50:42 +10:00
Oliver Walters
087492faf8 More build tests 2019-08-15 21:49:40 +10:00
Oliver Walters
cd05ed91aa More tests for Build API and views 2019-08-15 21:35:16 +10:00
Oliver Walters
62f007529e Bug fix in build views
- Untested code path meant variable was not being set
2019-08-15 21:19:59 +10:00
Oliver Walters
80771beee9 FIxtures for build testing 2019-08-15 21:16:12 +10:00
Oliver Walters
5501fecbc4 PEP 2019-08-15 19:36:03 +10:00
Oliver Walters
b8d7cefa95 Add button to delete a build (only if it has been cancelled) 2019-08-15 19:35:12 +10:00
Oliver Walters
03b7e3a815 Add view / template to delete a build 2019-08-15 19:34:55 +10:00
Oliver Walters
d9e5bfd971 Use button row rather than drop-down for build display 2019-08-15 19:26:13 +10:00
Oliver Walters
c81f8e6d87 Add 'new supplier part' button to stock item creation form 2019-08-15 13:17:33 +10:00
Oliver Walters
475c532514 Fix config template file 2019-08-14 16:56:54 +10:00
Oliver Walters
6106d33732 More span / button fixes 2019-08-14 16:40:14 +10:00
Oliver Walters
6c73649687 PEP fix 2019-08-14 16:35:26 +10:00
Oliver Walters
5963f7ed01 Deleted unused form 2019-08-14 13:54:16 +10:00
Oliver Walters
f90ffcd3db Fix buttons for BOM upload form 2019-08-14 13:35:48 +10:00
Oliver Walters
f9fa16a397 Fix remove-row button in stock-adjust form 2019-08-14 13:29:51 +10:00
Oliver Walters
335066aef6 Fix buttons for order form 2019-08-14 13:28:06 +10:00
Oliver Walters
b19472ad73 Bump version 2019-08-14 13:27:51 +10:00
Oliver Walters
0a97bc1b40 PEP fixes 2019-08-14 13:15:36 +10:00
Oliver Walters
ea669e7562 Print warnings to stderr not stdout 2019-08-14 12:13:31 +10:00
Oliver Walters
905c02d86f Copy config template to config file if it does not exist 2019-08-14 12:05:47 +10:00
Oliver Walters
b7391231aa Fixes for default config file 2019-08-14 11:43:48 +10:00
Oliver Walters
df470ca26d Tests for serial number extraction 2019-08-09 20:30:31 +10:00
Oliver Walters
a36d99b3e7 PEP fixes 2019-08-09 20:14:47 +10:00
Oliver Walters
bd61c89094 Tests for stock app views 2019-08-09 20:13:23 +10:00
Oliver Walters
e849f62a6a PEP 2019-08-08 23:50:11 +10:00
Oliver Walters
b924265c9a Some tests for views in order app 2019-08-08 23:49:35 +10:00
Oliver Walters
45d5667ccc PEP fixes 2019-08-08 23:36:32 +10:00
Oliver Walters
b872a12131 Test for making part variant 2019-08-08 23:34:32 +10:00
Oliver Walters
3a87cd866c Tests for part creation
- Need more tests for POST action
2019-08-08 23:32:34 +10:00
Oliver Walters
51e4a4c006 Tests for BomItem forms 2019-08-08 23:22:26 +10:00
Oliver Walters
d6f1fe74d1 Tests for PartCategory forms 2019-08-08 23:16:03 +10:00
Oliver Walters
ab3e66d578 Test for BOM download 2019-08-08 23:10:07 +10:00
Oliver Walters
f299248063 Improve testing for part export 2019-08-08 23:06:22 +10:00
Oliver Walters
21d2c434ff Test for part export view
- Needs some more work (parts need supplier parts!)
2019-08-08 23:04:58 +10:00
Oliver Walters
afcd411358 (partial) tests for attachment forms 2019-08-08 23:00:01 +10:00
Oliver Walters
3a9494ee69 Test for Part Editing form 2019-08-08 22:50:17 +10:00
Oliver Walters
7db97f2226 Test Part QR Code view 2019-08-08 22:45:10 +10:00
Oliver Walters
a70484caff Test PartDetail view 2019-08-08 22:45:02 +10:00
Oliver Walters
f26243af97 Tests for Part index / 2019-08-08 22:19:17 +10:00
Oliver Walters
adbc4db3d5 Remove 'set part category' button (doesn't do anything) 2019-08-07 10:11:00 +10:00
Oliver Walters
4fc2a22ba6 PEP fix 2019-08-07 10:07:30 +10:00
Oliver Walters
8904733ac0 Include part stock information 2019-08-07 10:05:12 +10:00
Oliver Walters
ab0da6aaae Include more part data in export 2019-08-07 09:55:18 +10:00
Oliver Walters
dda4569f76 Export selected parts
- Select which parts to export in the table
- Export base information
- Include supplier part information
2019-08-07 09:52:49 +10:00
Oliver Walters
3dca7ba353 Include supplier information in BOM 2019-08-07 09:12:53 +10:00
Oliver
ecff9b7209
Merge pull request #433 from SchrodingersGat/order-api
Add API endpoint for purchase orders
2019-08-02 22:37:02 +10:00
Oliver
73eada17bc
Merge pull request #432 from SchrodingersGat/tweaks
Tweaks
2019-08-02 21:55:02 +10:00
Oliver Walters
b5f2c9d311 Add API endpoint for purchase orders
- List and create purchase orders
- List and create purchase order line items
2019-08-02 21:46:26 +10:00
Oliver Walters
e66fd956f9 Fix available stock display 2019-08-02 15:13:47 +10:00
Oliver Walters
0a328687a5 BOM hash includes reference fields 2019-08-02 11:11:28 +10:00
Oliver Walters
5ee07eae7c Update installation routine and docs
- Single call of "make install" does everything
- Add backup_dir option to yaml config file
2019-08-01 20:07:06 +10:00
Oliver Walters
c8bf20ad41 Add part hover image 2019-07-25 11:08:22 +10:00
Oliver Walters
fe7392f152 Prevent stock adjustments for serialized stock items 2019-07-25 11:05:09 +10:00
Oliver Walters
94c0102742 Improve validation logic for StockItem
- Allow tracked items to exist without a serial number (e.g. non-serialized tracked items)
2019-07-25 11:04:45 +10:00
Oliver Walters
42e1370e92 Bug fix 2019-07-25 10:36:59 +10:00
Oliver Walters
3058b895dd Prevent auto-delete of stock items which have a serial number 2019-07-24 20:24:12 +10:00
Oliver Walters
33fe4d186d Include more fields when splitting stock 2019-07-24 19:48:37 +10:00
Oliver Walters
077ad9482e Fix display of part trackable status info 2019-07-23 11:57:33 +10:00
Oliver Walters
a42371598c Fix part deletion template
- Display list of stock items which will be thusly deleted
2019-07-23 11:55:51 +10:00
Oliver Walters
b546b5e0cc Create separate entries for each unique serial number 2019-07-23 11:45:03 +10:00
Oliver Walters
d82d8f5cd1 Re-implement item saving for non-tracked parts 2019-07-23 11:31:29 +10:00
Oliver Walters
9e5eadd6c3 Set serial numbers when creating a new stock item 2019-07-23 10:31:34 +10:00
Oliver Walters
23d03d6b9b Build completion now handles unique serial numbers
Provide a method to test if a serial number matches for a given part
2019-07-22 15:55:36 +10:00
Oliver Walters
9a8e4d25d2 Input serial numbers when creating a new build 2019-07-22 13:45:09 +10:00
Oliver Walters
44c9683d48 Extract serial numbers from a simple input string
- Individual numbers can be separated by comma or whitespace
- Provide a series of numbers with hyphen-separation
2019-07-22 13:43:39 +10:00
Oliver Walters
8ca14efa53 Delete stock tracking entries 2019-07-22 10:46:42 +10:00