Oliver Walters
2dc43f0cf1
no message
2019-06-27 21:08:49 +10:00
Oliver Walters
d6fcf85cd2
Set part category for multiple parts at once
2019-06-25 19:15:39 +10:00
Oliver Walters
a5306ec81b
Add 'revision' field to part
...
- e.g. different versions of a product
- Can keep old versions in database and mark as inactive
2019-06-20 21:46:16 +10:00
Oliver Walters
d5119e1aff
Replace some cog icons
2019-06-20 21:28:00 +10:00
Oliver Walters
6e1b7bf3f0
Fix buttons in attachment table
2019-06-19 19:05:18 +10:00
Oliver Walters
d837a1f9a2
Buttonize the part category page
2019-06-19 18:54:32 +10:00
Oliver Walters
fefbcf2ed9
Clean up buttons for stock location
2019-06-19 18:49:05 +10:00
Oliver Walters
afcbd73026
Consolidate visual style for "Part" tabs
2019-06-19 07:58:14 +10:00
Oliver Walters
c0e66dd9a0
Added pretty buttons to stock item page
2019-06-18 23:56:00 +10:00
Oliver Walters
8842d50c72
Replace a whole bunch o' drop-down options with pretty buttons
2019-06-18 22:49:43 +10:00
Oliver Walters
ee5722857f
Re-add 'new stock item' button
2019-06-18 22:13:54 +10:00
Oliver Walters
3349d0c0df
Remove part 'type' fields from form
...
These are now presented as virtual buttons
2019-06-18 21:43:51 +10:00
Oliver Walters
1d67b4cdaa
Sliders now update the part options via AJAX
2019-06-18 19:24:10 +10:00
Oliver Walters
65a8a30f87
Many improves of the slidies
2019-06-18 19:05:09 +10:00
Oliver Walters
783b8964d1
Add 'slide' for part type
2019-06-18 18:49:52 +10:00
Oliver Walters
f0796327b3
Improve display of part base page
2019-06-12 00:29:47 +10:00
Oliver Walters
e4f5cc8ccd
Order from a part page
2019-06-12 00:04:20 +10:00
Oliver Walters
1cb6c67086
Launch order dialog from the 'Parts' table
2019-06-11 23:55:20 +10:00
Oliver Walters
b8bcc5ce0c
Separate display of open and closed purchase orders (per part)
2019-06-10 22:31:19 +10:00
Oliver Walters
31ad31365a
Calculate parts on order for a Part / SupplierPart
2019-06-07 08:37:25 +10:00
Oliver Walters
67248ec4dd
List purchase orders for a given part
2019-06-05 21:47:22 +10:00
Oliver Walters
782ad57f52
Re-enable image hovering where appropriate
2019-06-03 22:03:22 +10:00
Oliver Walters
7a3b186a0c
Fix double loading of modals.html
2019-06-03 21:51:59 +10:00
Oliver Walters
64d541f453
Hide result types which return no results
2019-06-02 20:28:17 +10:00
Oliver Walters
ba26acd487
Rename some fields
...
- Oops didn't think that through, gotta go through and fix the data now...
2019-06-02 19:46:30 +10:00
Oliver Walters
3427f81a34
Improve part information display
...
- Better terminology
2019-06-02 14:47:40 +10:00
Oliver Walters
8214aef0db
Add template for hover_image
2019-06-01 21:13:51 +10:00
Oliver Walters
7ac52d4d9f
Optionally select which column gets grouped
...
- Allow grouping by numerical values
2019-05-28 19:12:10 +10:00
Oliver Walters
8715e29c31
Add ability to make variant from template
2019-05-26 16:00:27 +10:00
Oliver Walters
91a5a7f051
Simplify part model
...
- Remove 'varian't or ''revision' field
- Part name must be unique across database
2019-05-26 12:16:57 +10:00
Oliver Walters
e5bb6284db
Add variant-of to part detail view
2019-05-26 00:41:24 +10:00
Oliver Walters
2138977b07
Include template attachments in attachment count
2019-05-26 00:39:36 +10:00
Oliver Walters
d563e873ed
Change some icons
2019-05-26 00:35:52 +10:00
Oliver Walters
21dd893c01
Display templated parts as italic in the part list
2019-05-26 00:29:17 +10:00
Oliver Walters
75b21bdd8f
Visual tweaks
2019-05-26 00:20:03 +10:00
Oliver Walters
c45a506a10
Rename field part.has_variants to part.is_template
2019-05-25 23:58:31 +10:00
Oliver Walters
9c1c008f33
Show attachments for the Template part under attachments tab
2019-05-25 23:50:24 +10:00
Oliver Walters
08ac7e2a36
Rendering tweaks
2019-05-25 23:45:26 +10:00
Oliver Walters
3d57483f0e
Add a 'new varian't button
2019-05-25 23:43:06 +10:00
Oliver Walters
bbe66472ee
Display list of part variants
2019-05-25 23:40:59 +10:00
Oliver Walters
39c4611598
Add a tab for part variants
2019-05-25 23:31:23 +10:00
Oliver Walters
0e684071fa
Display message if a part is a template or a variant
2019-05-25 23:21:38 +10:00
Oliver Walters
5664fc5472
Detail in StockItem API now optional
2019-05-23 22:57:45 +10:00
Oliver Walters
9052ccc181
Make 'part_detail' field in SupplierPart serializer optional
2019-05-23 22:44:37 +10:00
Oliver Walters
cf5b8d0249
Optional part_detail and sub_part_detail for BOM API
...
- Significant speed boost on request
- Request the relevent information at the right place
2019-05-23 22:36:19 +10:00
Oliver Walters
27f956bffa
Part detail rendering improvements
2019-05-22 23:27:43 +10:00
Oliver Walters
cd7bc6cce5
Include pricing information in part supplier view
...
Also some CSS tweaks to secondary modal buttons
2019-05-22 22:11:27 +10:00
Oliver Walters
49ed17db56
Add a line
2019-05-21 00:52:17 +10:00
Oliver Walters
4b41766312
And mode
2019-05-21 00:31:34 +10:00
Oliver Walters
34620b22b0
Add a middleware to count queries
...
- https://www.dabapps.com/blog/logging-sql-queries-django-13/
2019-05-20 18:51:57 +10:00
Oliver Walters
a54760b219
Improve pricing display
2019-05-18 23:44:43 +10:00
Oliver Walters
ffda5a1b29
Add warning if no pricing data available
2019-05-18 23:13:18 +10:00
Oliver Walters
368193d397
Fix formatting
2019-05-18 23:09:12 +10:00
Oliver Walters
dcf79338c1
Add pop-up pricing window for part
...
- Cost to purchase from suppliers
- Cost to build from BOM
2019-05-18 23:09:08 +10:00
Oliver Walters
2a1fd2b03b
More complex pricing calculations
...
- Calculate BOM price for a part
- Calculate total pricing for a part (build or purchase)
- Display pricing information in BOM table
2019-05-18 23:08:51 +10:00
Oliver Walters
a3d1591929
Display part pricing in Part view
...
- Calculate min_price and max_price based on provided supplier information
2019-05-18 23:08:38 +10:00
Oliver Walters
a2eeb7e946
Bug fix for part/stock
...
- Re-introduce the button to create a new stock item
2019-05-17 16:35:16 +10:00
Oliver Walters
117fd701cd
Refactor some code
2019-05-16 22:19:49 +10:00
Oliver Walters
0a1887477c
Create template for stock table
2019-05-16 22:15:44 +10:00
Oliver Walters
b4df96aaee
Simplify extended filters
2019-05-16 19:14:43 +10:00
Oliver Walters
292e29e95e
Add some more secondary modals
2019-05-15 07:50:54 +10:00
Oliver Walters
f979edef8e
Prevent double loading of stock.js
2019-05-14 23:47:15 +10:00
Oliver Walters
2e5b3bfdf9
Prevent multiple loads of part.js
2019-05-14 23:44:33 +10:00
Oliver Walters
58cc1cda77
Only load api.js once
2019-05-14 23:43:16 +10:00
Oliver Walters
505b7941b1
Add link to delete a part
...
- Part must first be deactivated
2019-05-14 23:33:25 +10:00
Oliver Walters
76e6094977
Add secondary modal to BOM
2019-05-14 23:30:32 +10:00
Oliver Walters
9d50f2a6ac
Toot toot all aboard the refactor tractor
...
- launchModalForm now accepts a 'secondary' parameter which is a list of secondary modals to attach
2019-05-14 23:27:45 +10:00
Oliver Walters
97c4e5acbf
Add some secondary buttons to the part-create form
2019-05-14 23:19:56 +10:00
Oliver Walters
02033c2157
Add 'keywords' field to Part
...
- Shows up in search results
2019-05-14 17:23:20 +10:00
Oliver Walters
06e95819c9
Update form for deleting a BOM item
2019-05-13 23:00:04 +10:00
Oliver Walters
00b37b62db
Updated form to delete part category
2019-05-13 22:55:40 +10:00
Oliver Walters
ffa5a25fa9
Updated form for deleting part attachments
2019-05-13 22:53:58 +10:00
Oliver Walters
3e4d778539
Change menu ordering
2019-05-13 21:56:39 +10:00
Oliver Walters
2408318eae
Add new view to duplicate a part
...
- Allows 'deep_copy' (copies all BOM items for the duplicated part)
2019-05-13 21:41:32 +10:00
Oliver Walters
e3a9a70678
Add a form/view/etc for BOM validation
2019-05-12 16:27:50 +10:00
Oliver Walters
c7f0d56be4
Don't display BOM hash any more!
2019-05-12 16:09:11 +10:00
Oliver Walters
d17e36b9f9
Add BOM checksum info panels to the BOM view
2019-05-12 13:24:58 +10:00
Oliver Walters
9149619f38
Make BOM tab badge red if the BOM is not validated
2019-05-12 13:12:04 +10:00
Oliver Walters
4c3032e2f0
Add function to calculate BOM hash
...
- Uses hashlib.md5
2019-05-12 12:42:20 +10:00
Oliver Walters
1d36ea3e2e
Add a 'full_name' field for Part
...
- Combines IPN | Name | Variant
- Use this to display in most views
2019-05-12 12:16:04 +10:00
Oliver Walters
b3cca1d851
Improve form management when possible part matches are found
...
- Display the checkbox always
- Display a warning message above the form
2019-05-11 18:07:37 +10:00
Oliver Walters
d9c0d2f5e3
Update PartCreate form
...
- Display list of close matches
- Invalidate form (for now)
2019-05-11 11:55:17 +10:00
Oliver Walters
68b273aae1
Fixed some more part name displays
2019-05-10 22:18:56 +10:00
Oliver Walters
f76f1f54ae
Add 'variant' field to Part model
...
- Display 'long_name' which is concatenation of name and variant
2019-05-10 22:17:13 +10:00
Oliver Walters
932c07287b
Button fixes
2019-05-10 08:38:50 +10:00
Oliver Walters
34225193fa
Improve tree toggle icon
2019-05-09 21:46:11 +10:00
Oliver Walters
bff0f30b13
Save tree state 'per tree'
...
- Separate save state for Part and Stock tree
2019-05-09 21:41:44 +10:00
Oliver
8bf09300bb
Merge pull request #281 from SchrodingersGat/page-title
...
Page title
2019-05-09 18:33:03 +10:00
Oliver Walters
ca6bd0a999
Add page title for company page
2019-05-09 18:17:28 +10:00
Oliver Walters
a067d9f4cd
Add page title for Part app
2019-05-09 18:13:54 +10:00
Oliver Walters
873bd182f0
Vertical alignment of button toolbars
2019-05-09 18:04:42 +10:00
Oliver Walters
1f9aa7a8fc
Display thumbnail in Part 'used_in' detail view
2019-05-08 20:26:39 +10:00
Oliver Walters
58e5b10d26
Display supplier logo in part suppliers list
...
- Also add a background colour for popup image in case of transparent image file
2019-05-08 20:23:54 +10:00
Oliver Walters
0058207fad
Functionalize loadPartTable
2019-05-08 19:31:43 +10:00
Oliver Walters
2a66224952
Part image hover preview working in part-category-list
...
- Yay for CSS!
2019-05-08 19:15:41 +10:00
Oliver Walters
ab76525da2
Initially sort part list by 'name'
2019-05-08 15:53:03 +10:00
Oliver Walters
e58bed41b0
Visual style improvements
2019-05-07 21:24:09 +10:00
Oliver Walters
dcbd5d819c
Enable DnD for Company image
...
- Can actually use the existing form to do partial upload!
- Generecise the drag-and-drop upload function
- Remove some (now unnecessary) Python View code
2019-05-07 14:47:31 +10:00
Oliver Walters
fe4acd48a7
Add the ability to extract image URL information when drag-and-dropping image URL from a browser window
...
- Can't do anything with it yet...
- Code is almost there but leaving for now
2019-05-07 00:04:35 +10:00
Oliver Walters
3c7238f29c
Extract img URL from a drag-and-dropped image from another website
...
- https://stackoverflow.com/a/19268449
2019-05-06 22:34:38 +10:00
Oliver Walters
bb702367b6
Test that uploaded image is an image file, return error otherwise
...
- New javascript function inventreeFileUpload
2019-05-06 22:20:06 +10:00
Oliver Walters
c88149b9aa
POST image data to View
...
- https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
- https://stackoverflow.com/questions/25390598/append-called-on-an-object-that-does-not-implement-interface-formdata#25390646
2019-05-06 21:49:01 +10:00
Oliver Walters
eec0fc34d2
Provide function callback when file is dropped
...
- https://stackoverflow.com/questions/6756583/prevent-browser-from-loading-a-drag-and-dropped-file
-
2019-05-06 21:28:49 +10:00
Oliver Walters
dca26b5810
Change the display of the part thumbnail when dragging a file overhead
...
Refs:
- https://stackoverflow.com/questions/26756176/jquery-dragenter-or-dragover-to-include-children#26777526
- https://stackoverflow.com/questions/10867506/dragleave-of-parent-element-fires-when-dragging-over-children-elements
Thanks, StackOverflow!
2019-05-06 19:21:14 +10:00
Oliver Walters
aaff92ff9c
Make the star icon yellow
2019-05-05 11:21:08 +10:00
Oliver Walters
fc5fd5e477
Toggle part star status using AJAX
2019-05-05 11:18:38 +10:00
Oliver Walters
d2d248c72e
QR button code is now a template
2019-05-05 10:56:59 +10:00
Oliver Walters
bbd164407f
Display 'starred' status on the Part information page
2019-05-05 10:54:35 +10:00
Oliver Walters
16edcc4bd9
Add 'star' button to Part
2019-05-05 08:42:01 +10:00
Oliver Walters
8a6932e993
Improve QR code display
...
- Pretty little glyphicon button!
2019-05-05 08:39:16 +10:00
Oliver Walters
a66bc2fe72
Reload after adjusting Part attachments
2019-05-05 00:53:42 +10:00
Oliver Walters
67eda51cd2
Add part category tree traversal
...
- If a category doesn't have a default_location, look at the parent category
- And so on and so on
2019-05-04 21:56:18 +10:00
Oliver Walters
9aa1a70f18
QR code improvements
...
- Display QR codes as links to served images
- The qr_code plugin caches these images in the background
- Make a qr_code template to push out as a modal form
- Create a QRCodeView to simplify display of QR codes
- Add option to launchModalForm() to disable the 'submit' button
Refactored QR code display for
- StockLocation
- StockItem
- Part
2019-05-04 18:46:57 +10:00
Oliver Walters
b6cace2681
Add 'options' drop-down for Part table in Category view
...
- Doesn't do anything yet
2019-05-04 16:41:45 +10:00
Oliver Walters
b1cdb7833d
Add confirmation modal to activate/deactivate a part
...
- New question modal available
2019-05-04 16:31:23 +10:00
Oliver Walters
2eb825b0e6
Improved table rendering
2019-05-04 00:02:53 +10:00
Oliver
6482b54bc9
Merge pull request #205 from SchrodingersGat/qr-codes
...
Qr codes
2019-05-02 21:15:34 +10:00
Oliver Walters
5a234a1070
Added barcode for Part object
2019-05-02 20:57:53 +10:00
Oliver Walters
4d7ac870e0
Use the collapse template for the stock location list view
2019-05-02 19:02:03 +10:00
Oliver Walters
6e8c1bcc84
Add views to Create / Edit / Delete a PartAttachment
...
- Buttons to edit or delete existing attachments
- Button to add a new attachment
- Fixed conflicting migrations
2019-05-02 17:29:21 +10:00
Oliver Walters
505191089f
Added buttons to edit and delete attachments
2019-05-02 01:06:06 +10:00
Oliver Walters
9614ac2958
Move attachments list to attachments tab
2019-05-02 01:06:06 +10:00
Oliver Walters
2181c82a31
Add 'attachments' tab for Part
2019-05-02 01:05:32 +10:00
Oliver Walters
7e7ac60a1a
Tweaks
...
- Can't edit build status directly
- Refresh BOM table on reload
- Hide Company tabs that are not yet functional
2019-04-30 20:55:28 +10:00
Oliver Walters
73f672495d
Use API to mark part as active/inactive
2019-04-28 23:40:26 +10:00
Oliver Walters
492d705b39
Hide inactive parts in parts list
2019-04-28 23:22:54 +10:00
Oliver Walters
495d414d54
Hide some options if a part is not active
2019-04-28 23:12:59 +10:00
Oliver Walters
260d890052
If a part is not active, display an INACTIVE Message on part page
2019-04-28 23:08:54 +10:00
Oliver
165264bd0e
Merge pull request #166 from SchrodingersGat/copy-button
...
Move 'duplicate' button to the Part options drop-down
2019-04-26 23:44:01 +10:00
Oliver Walters
69b34a0ff2
Move 'duplicate' button to the Part options drop-down
2019-04-26 23:39:33 +10:00
Oliver Walters
cec61655cf
Fix table rendering for 'used_in' view
2019-04-26 23:12:06 +10:00
Oliver Walters
dee10e4922
Fix rendering of part supplier table
2019-04-26 23:04:08 +10:00
Oliver Walters
5ee339bb27
Add 'delete' button for supplier parts
2019-04-26 21:44:37 +10:00
Oliver Walters
0cdf660a80
Merge remote-tracking branch 'inventree/master' into delete-old-forms
...
# Conflicts:
# InvenTree/part/views.py
2019-04-18 23:51:58 +10:00
Oliver Walters
4f51258cf8
Removed old forms in Part
2019-04-18 23:39:05 +10:00
Oliver Walters
8040ad8a6a
Add function to duplicate stock item
2019-04-18 23:28:46 +10:00
Oliver Walters
6de58edd41
Add button on part page to duplicate part
...
- Opens modal form
- Takes user to created page
2019-04-18 23:17:21 +10:00
Oliver Walters
a0b6900eb8
Disable buttons that require row selection, until a selection has been made
...
- Stock table
2019-04-18 22:35:51 +10:00
Oliver Walters
18c48e9191
Split part details display into two columns
2019-04-18 08:33:25 +10:00
Oliver Walters
e707eb3a2b
Provide download link for part attachments
...
- Better upload management for attachment files (separated based on part ID)
2019-04-18 00:14:53 +10:00
Oliver Walters
d9d4e0043a
Display list of part attachments
2019-04-18 00:01:19 +10:00
Oliver Walters
963883acd6
Consolidated function to adjust stock
...
- Add / remove / stocktake
- Handle forms and tables properly
2019-04-17 23:17:04 +10:00
Oliver Walters
ba1b8d9181
Created js function to load stock table
...
- Avoid duplication of code
2019-04-17 22:59:52 +10:00
Oliver Walters
b9b8b5ee12
Update model for StockItem
2019-04-17 18:34:21 +10:00
Oliver Walters
7eea9d1a20
Launch a modal to select BOM download format
...
- This will have to change! A client-side hack for now..
- Work out a better way to do this!
2019-04-16 21:46:12 +10:00
Oliver Walters
29f33a8eec
Move button locations into bootstrap-table headers
...
- part category
- stock location
- build list
- company list
- supplier part list
2019-04-16 11:46:07 +10:00
Oliver Walters
338a30b50e
API endpoint for build list
...
- Changed part/build table to bootstrap table (ajax)
2019-04-16 08:31:43 +10:00
Oliver Walters
94b280eed3
Move button groups into the table toolbar next to search box
...
- part stock list
- part bom list
2019-04-16 08:13:05 +10:00
Oliver Walters
a4467fee21
Remove bootstrap-editable
...
- Revert to using modal django forms
2019-04-16 07:53:30 +10:00
Oliver Walters
bad46f85f4
Edit / delete / add BOM items
...
- Remove x-editable inline editing
- Uses only bootstrap-table and modal forms
- Hide the 'part' field in the bom item edit
2019-04-16 01:41:01 +10:00
Oliver Walters
6e2b111b9c
Add 'consumable' field to Part
...
- Indicates that a part can be used to make other parts
- This is the inverse of 'buildable'
- Add this field to the serializer and edit forms
- Display parameter on part info page
- BOM edit window only requests sub-parts that are marked as 'consumable'
- Also added option to edit 'units' field for part
2019-04-16 00:01:52 +10:00
Oliver Walters
3d9a1acc2e
Don't render full category information in part API
...
- Lots of data duplication!
- Just send the category ID (and the category name)
-
2019-04-15 22:52:53 +10:00
Oliver Walters
7e78f0aa67
Changed query param from '1' to 'True'
2019-04-15 22:36:50 +10:00
Oliver Walters
a5e3af97ed
Move table functionality to external script
2019-04-15 22:28:29 +10:00
Oliver Walters
b522ca5b29
Don't render editable items when ont in editing mode
2019-04-15 18:41:48 +10:00
Oliver Walters
ec98f7829e
Add context flag to enable editing mode
...
- pass ?edit=1 to the BOM
- Display page differently if in editing mode
-
2019-04-15 18:32:15 +10:00
Oliver Walters
b8e28c003d
Provide download link to export BOM file
...
- Helper function for generating temporary file (in memory) for exporting
2019-04-14 12:34:14 +10:00
Oliver Walters
b58c49e066
Create BOM export form
...
- Select output format
2019-04-14 12:34:13 +10:00
Oliver Walters
0cc59540ef
Generate modal form to export BOM
...
- Doesn't do anything yet
- Extends AjaxView
2019-04-14 12:34:13 +10:00
Oliver Walters
00c21d521e
Always display category
...
- Display full category path
2019-04-14 12:25:21 +10:00
Oliver Walters
9d98c429d6
Complex filtering for parts
...
- Allow filtering against child categories
- Could potentially be slooow
2019-04-14 11:59:07 +10:00
Oliver Walters
2d21bf0626
Part BOM list now shows how many of each sub-item are available
...
- If there are enough to build the available quantity is shown in green
- Otherwise, shown in orange
2019-04-12 22:09:50 +10:00
Oliver Walters
8a3706dd76
Added MPN field to supplier part lists
2019-04-12 21:54:53 +10:00
Oliver Walters
25f1d643b8
Add indicator to show no stock in part listing
2019-04-12 21:21:50 +10:00
Oliver
2c953c73fa
Stock tracking tweaks
...
- Ability to stocktake for entire part
- Enforce addition of notes to stockAdjust modal
2018-05-09 00:06:35 +10:00
Oliver
47aa3c8a45
Login / Logout views
...
Information found here - https://simpleisbetterthancomplex.com/tutorial/2016/06/27/how-to-use-djangos-built-in-login-system.html
2018-05-08 23:00:27 +10:00
Oliver
002c047105
Added count/add/remove to Part Stock Detail Page
2018-05-08 22:14:18 +10:00
Oliver
3b6ef3f008
Added stocktake / add / remove actions to StockItemDetail page
2018-05-08 22:14:03 +10:00
Oliver
3f1c6e2059
Simplified modal calls
...
- Default modal target supplied (can be overridden in options)
2018-05-08 19:55:39 +10:00
Oliver
c5155d5ac7
Move modal JS file
...
- Loaded by base.
2018-05-08 19:40:29 +10:00
Oliver
fdf214626c
Further assorted updates
...
What, you need more commit details?! Pah
2018-05-07 23:40:17 +10:00
Oliver
425db5fd39
Tweaked part stock page
2018-05-07 21:51:08 +10:00
Oliver
deccdce6d9
Part view updates
2018-05-07 08:41:19 +10:00
Oliver
a7abf9731b
Add link to stock-item in part-stock view
2018-05-06 22:28:50 +10:00
Oliver
c1e7e95fc0
UI improvements
...
Consolidated detail pages with OPTIONS drown down
(rather than multiple single buttons)
2018-05-06 22:09:15 +10:00
Oliver
366e03456e
Hide 'tracking' tab for now
2018-05-06 19:27:34 +10:00
Oliver
19ce05931c
Re-added missing "New Part" button
2018-05-06 19:21:33 +10:00
James Newlands
01da57f0cf
If part has no category, page rendered an extra curly brace in JS that caused syntax error.
2018-05-05 21:22:47 +10:00
Oliver
4f63d12837
Consolidated 'Part' app views
...
- Improved templating
- Part tree open/close status stored to session
2018-05-04 18:55:55 +10:00
Oliver
389908c67a
Moved sidenav into block
2018-05-04 17:51:55 +10:00
Oliver
bc716e25f7
Fixed bugs in Inventree/views.py
...
- Need to pass request.FILES to the form! (duh!)
- Prevent form data from being saved twice
2018-05-03 23:40:27 +10:00
Oliver
68cf6919a7
Updated part views
...
- Allocation table now uses bootstrap-table
- Added checkbox column to supplier table (no function yet)
2018-05-03 23:39:08 +10:00
Oliver
f995f54390
More API / JSON stuff
...
- SupplierPart JSON API
- Part supplier list
- Company part list
2018-05-03 00:47:03 +10:00
Oliver
49287c0c61
Part 'used-in' view now uses API
...
- Ajax calls to JSON API
- BootstrapTable
2018-05-03 00:25:01 +10:00
Oliver
0f3150c705
Part stock table now uses API / BootstrapTable
2018-05-02 23:54:28 +10:00
Oliver
1d63147380
Reload BOM table without refreshing enitre page
2018-05-02 23:46:08 +10:00
Oliver
7d21c4ef1c
BOM now uses DRF / ajax
2018-05-02 23:42:57 +10:00
Oliver
be0797c6e6
Bootstrap table to company list
2018-05-02 23:17:24 +10:00
Oliver
1899d8f3e9
Stock location part list now uses bootstrap table
...
- Serializers within serializers!
2018-05-02 23:08:45 +10:00
Oliver
211edb23bb
Removed footable
...
- Now using bootstrap-table
2018-05-02 22:22:43 +10:00
Oliver
024fe04e0e
Implemented bootstrap-table for parts list
2018-05-02 22:18:58 +10:00
8cfbf2657e
Removed unused maths tag
2018-05-01 10:03:20 +10:00
Oliver
a2ff1d16f3
Introspection of build allocation
...
Yay for dicts
2018-04-30 22:45:11 +10:00
Oliver
b24ddac0b8
Part stuff
2018-04-30 22:30:15 +10:00
Oliver
f988c9af87
Tweaks for part page(s)
2018-04-30 01:16:57 +10:00
Oliver
5c902397e3
CSS fixes for .notificaiton-area and .alert
2018-04-30 00:29:39 +10:00
Oliver
a9c20f5d95
Added modal form success messages
...
- More to be done, just a start
- Create / edit / delete
2018-04-30 00:23:02 +10:00
Oliver
46dea22cd4
Simplified part stock display
2018-04-29 22:07:58 +10:00
Oliver
9ea3d7bf71
Build tab shows active builds
2018-04-29 13:11:31 +10:00
Oliver
aca0d236ee
Javascript consolidation
2018-04-29 12:25:07 +10:00
Oliver
8d0789c37c
Implemented tree view
...
Using library bootstrap-treeview
- part category tree
- stock location tree
- Currenly is functional but looks terrible
2018-04-28 23:22:12 +10:00
Oliver
095492203f
Simplified javascript templating
...
- Load js modules in block js_load
- Write $(document).ready script in block js_ready
- Write any other js in block_js
2018-04-28 12:45:12 +10:00
Oliver
7ebb723d15
Revert "Set initial value fields to disabled for some forms"
...
This reverts commit c1271367bd
.
2018-04-28 12:19:50 +10:00
Oliver
c1271367bd
Set initial value fields to disabled for some forms
...
- Prevent user from changing certain fields
- Only when a form is launched from a particular view
2018-04-28 12:14:18 +10:00
Oliver
2e7253ebc4
Tweak javascript for category detail pages
2018-04-28 11:43:26 +10:00
Oliver
0dcdce82f8
Modals dialogs for 'Build'
2018-04-28 01:06:42 +10:00
Oliver
f49474ace5
Prevent recursive BOMs
...
- If A has B in its BOM, A cannot be added to the BOM of B
2018-04-27 23:42:23 +10:00
Oliver
1b5dbfbe26
Reload page when adding BOM item to part
2018-04-27 23:14:25 +10:00
Oliver
4d6e2aca2c
Modal forms for stock app
2018-04-27 22:59:08 +10:00
Oliver
c4e305bde6
Loaded both modals into single include
2018-04-27 21:35:36 +10:00
Oliver
e1e3cc71e6
More modal forms
...
- supplier-part-edit
- supplier-part-delete
2018-04-27 21:32:48 +10:00
Oliver
bc3dca3aba
Modal for edit and delete part category
2018-04-27 20:42:12 +10:00
Oliver
5162c1d11f
Inline deletion for BOM items
2018-04-27 00:54:01 +10:00
Oliver
507e3de05b
Generecised launchModalForm
...
- Add 'options' e.g. redirect / data
2018-04-27 00:16:54 +10:00
Oliver
784b0dec02
Added AjaxDeleteView
...
- AjaxDeleteView handles ajaxified delete GET and POST events
- Added modal deletion window
- Added launchDeleteForm jQuery function
2018-04-27 00:06:44 +10:00
Oliver
9fd275ed3e
Part Edit view now ajaxified
2018-04-26 23:28:27 +10:00
Oliver
c0902626f4
footable working with BOM items
...
- Event delegation to capture 'edit' button
2018-04-26 23:05:35 +10:00
Oliver
280f2c36cb
Modal form for part creation
2018-04-26 18:22:41 +10:00
Oliver
e395d89a7f
Fix issues for AjaxUdpateView
...
- Works properly now!
- Can edit BOM item inline
- Can add BOM item inline too
2018-04-26 09:26:43 +10:00
Oliver
55e7f365df
Added AjaxUpdateView class
...
Also cleaned up the modal form javascript
2018-04-26 08:18:53 +10:00
Oliver
99743c6bd0
Modal form now working on multiple pages
...
- Part index
- Part category detail page(s)
2018-04-25 15:34:12 +10:00
Oliver
e3b2bd7129
Abstracted jquery code to load a modal form
...
- static/scripts/modal_form.js
- bindModalForm function takes care of the mechanics
2018-04-25 15:28:57 +10:00
Oliver
d88da28871
Generic AjaxCreateView
...
- Allows for same form to be posted
2018-04-25 14:10:56 +10:00
Oliver
8bc4050d05
Modal form is working for 'create new category'
...
- Had to set form.helper.form_tag to False (so we could control form tags manually)
- Created a 'json' model view
2018-04-25 12:46:58 +10:00
Oliver
9004086632
Add button to launch modal form
2018-04-25 00:09:25 +10:00
Oliver
b114001678
Fixed display of part allocation count
2018-04-24 17:59:20 +10:00
Oliver
f46c09e3a7
Added part category path string to serializer
2018-04-24 17:54:08 +10:00
Oliver
25fcd3e9f1
Simple search filtering for part list
...
- Needs to be 'generecised'
- Working well for now
2018-04-24 09:06:30 +10:00
Oliver
ac3de4ce3d
Add part detail page for company / supplier
2018-04-22 23:07:23 +10:00
Oliver
d44a4e174b
Added 'tabs' to company view
2018-04-22 22:38:35 +10:00
Oliver
a4621295a6
Fixed spash page for customer index
...
Added 'notes' field to Part object
2018-04-18 01:44:55 +10:00
Oliver
7045443d7b
Add tab view for supplier page
...
- "Parts" tab
- "Orders" tab
2018-04-18 00:42:44 +10:00
Oliver
34d240c6e8
Moved top-level templates to a top-level dir
...
It just seems fitting is all
2018-04-17 23:42:25 +10:00
Oliver
81afd3a47d
Merge remote-tracking branch 'origin/customer_orders'
2018-04-17 23:18:08 +10:00
Oliver
291992ab7f
Added views and pages for Build model
...
- Edit / create
- View details
- View build index at /build/
2018-04-17 23:13:41 +10:00
James Newlands
121315f15e
Add link to table of orders to nav bar
2018-04-17 23:10:06 +10:00
Oliver
11b9fb10d8
Parts now know how many builds they are allocated to
...
- allocated_builds returns lists of active builds this part is allocated to
- allocated_build_count returns the total number of this part allocated to builds
- allocation_count returns total number of allocated parts (in the future this will also include those parts allocated to customer orders)
2018-04-17 22:26:57 +10:00
Oliver
0b40197cd2
Update 'Build'
...
- Part model now has active_builds and inactive_builds properties
-
2018-04-17 20:25:43 +10:00
Oliver
982803a0a7
Updated Part model
...
- Added 'default_location'
- Added 'default_supplier'
2018-04-17 18:23:39 +10:00
Oliver
45c5edee4d
Added 'salable' field to Part model
2018-04-17 18:11:34 +10:00
Oliver
937470750b
Added helper functions, improved UI
2018-04-16 23:26:02 +10:00
Oliver
a67d5b58db
UI improvements
2018-04-16 23:09:45 +10:00
Oliver
b6b4189c49
UI tweaks
2018-04-16 22:23:29 +10:00
Oliver
118d045e50
Improved part logic
...
- Added field 'buildable' - can this part be made from other parts?
- Added @propery 'supplier_count'
- Improved part detail page with new features
2018-04-16 22:13:31 +10:00
Oliver
e43439ef5b
Function to calculate how many parts can be made with current stock
2018-04-16 21:49:38 +10:00
Oliver
76ee150ca4
Moved tracking information to StockItem
2018-04-16 20:08:04 +10:00
Oliver
f7eff8ae98
Added URL field to UniquePart
...
- e.g. link to external part tracking info page
2018-04-16 01:25:13 +10:00
Oliver
a80cf0aace
Added some missing data on supplier pages
2018-04-16 01:14:19 +10:00
Oliver
8e6de1b832
Add pages for part tracking
...
- Edit / Delete / Create tracking info
- Improvements to many pages
2018-04-16 00:30:57 +10:00
Oliver
55b533d3ef
Added edit views for stock
...
- StockItem
- StockLocation
2018-04-15 23:27:56 +10:00