Oliver Walters
|
e25579141e
|
Rename BuildItemAllocation to BuildItem
|
2019-04-29 22:30:21 +10:00 |
|
Oliver Walters
|
6326d6d050
|
Fixed spelling mistake
|
2019-04-29 22:21:18 +10:00 |
|
Oliver Walters
|
989611cae2
|
Added BuildItemAllocation Model
- Used to link stock items to a build
|
2019-04-29 22:19:13 +10:00 |
|
 OliverandGitHub
|
99b386fb95
|
Merge pull request #185 from SchrodingersGat/active-part
Inactive part
|
2019-04-29 00:04:26 +10:00 |
|
 OliverandGitHub
|
e7a73e2dd9
|
Merge pull request #186 from SchrodingersGat/supplier-part-limit
Supplier part limit
|
2019-04-29 00:02:03 +10:00 |
|
Oliver Walters
|
07fbaa9dd9
|
Test fix
- Part list API handles 'category' filtering a bit differently
- Probably need to address this
|
2019-04-29 00:01:57 +10:00 |
|
Oliver Walters
|
05333e7e7d
|
PEP fixes
|
2019-04-28 23:58:14 +10:00 |
|
Oliver Walters
|
87411293cf
|
docstring improvements
|
2019-04-28 23:57:29 +10:00 |
|
Oliver Walters
|
bc12af5994
|
Remove the 'supplier_part' field when first creating a Part object
- As the Part does not yet exist, there are no matching SupplierPart objects
|
2019-04-28 23:55:21 +10:00 |
|
Oliver Walters
|
4e3702384b
|
Limit SupplierPart option in Part edit form
- Only allow selection of SupplierPart that match the Part being edited
|
2019-04-28 23:50:35 +10:00 |
|
Oliver Walters
|
6612e91aec
|
Remove ability to delete part via API
|
2019-04-28 23:41:47 +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
|
1a66a12d57
|
Enable Part API to filter by active status
|
2019-04-28 23:15:30 +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 Walters
|
c2a35b6656
|
Add 'active' field to Part model
|
2019-04-28 23:00:38 +10:00 |
|
 OliverandGitHub
|
13756751c3
|
Update README.md
|
2019-04-28 21:28:08 +10:00 |
|
 OliverandGitHub
|
760ca0f800
|
Merge pull request #184 from SchrodingersGat/pip-doc
Comments for pip requirements.txt
|
2019-04-28 19:44:05 +10:00 |
|
Oliver Walters
|
32bbbbd404
|
Comments for pip requirements.txt
|
2019-04-28 19:41:03 +10:00 |
|
 OliverandGitHub
|
77f4717479
|
Merge pull request #183 from SchrodingersGat/tweaks
Some small tweaks
|
2019-04-28 19:34:25 +10:00 |
|
Oliver Walters
|
2f7f49c116
|
PEP fix
|
2019-04-28 11:54:40 +10:00 |
|
Oliver Walters
|
a9224445b6
|
Added docstring
|
2019-04-28 11:54:08 +10:00 |
|
Oliver Walters
|
ba49b080b0
|
Some small tweaks
|
2019-04-28 11:46:53 +10:00 |
|
 OliverandGitHub
|
e5e6480099
|
Merge pull request #181 from SchrodingersGat/supplier-parts
Supplier parts
|
2019-04-28 11:28:32 +10:00 |
|
Oliver Walters
|
1171953e65
|
Limit SupplierPart options in CreateBomItem form
- If Part is selected, limit the options in supplier_part field
- Only allow supplier_parts which map back to the same part
|
2019-04-28 11:24:26 +10:00 |
|
Oliver Walters
|
a9fbbc3a37
|
Remove references to get_object_or_404
- Properly handle DoesNotExist errors
|
2019-04-28 11:09:19 +10:00 |
|
Oliver Walters
|
624c5094c5
|
Prevent editing of SupplierPart fields if initial values are provided
|
2019-04-28 10:57:32 +10:00 |
|
Oliver Walters
|
101ce53cd3
|
Update docstrings for InvenTree/views.py
|
2019-04-28 10:46:07 +10:00 |
|
Oliver Walters
|
ff068de16d
|
Simplify AjaxDeleteView
|
2019-04-28 10:41:54 +10:00 |
|
Oliver Walters
|
72ff25e0c1
|
Simplify AjaxUpdateView
- Using get_form() is MUCH simpler
|
2019-04-28 10:39:46 +10:00 |
|
Oliver Walters
|
96a15453c4
|
Simplify AjaxCreateView
- Screams in reading the documentation
|
2019-04-28 10:35:17 +10:00 |
|
Oliver Walters
|
cd438f0569
|
Add generic method for retriving GET or POST params
|
2019-04-28 09:53:42 +10:00 |
|
 OliverandGitHub
|
cb02be3c80
|
Merge pull request #179 from SchrodingersGat/make-fix
Update makefile
|
2019-04-28 09:44:35 +10:00 |
|
Oliver Walters
|
e5fc43a00f
|
Fix improper references to template_name for ajax forms
- Should be ajax_template_name
|
2019-04-28 09:00:54 +10:00 |
|
Oliver Walters
|
9b77340782
|
Change field ordering for SupplierPart form
- Import fields first!
|
2019-04-28 08:55:29 +10:00 |
|
Oliver Walters
|
2108ee2eb7
|
Update makefile
|
2019-04-28 08:42:17 +10:00 |
|
 OliverandGitHub
|
bf76a6024e
|
Update README.md
Much improve so better
|
2019-04-28 08:39:41 +10:00 |
|
 OliverandGitHub
|
5b6ba0bb8b
|
Merge pull request #178 from SchrodingersGat/toc-url-fix
Remove absolute URL encoding
|
2019-04-28 08:12:08 +10:00 |
|
Oliver Walters
|
7c45f8dc24
|
Remove absolute URL encoding
- Should now work on RTD
|
2019-04-28 08:11:29 +10:00 |
|
 OliverandGitHub
|
b52fe8810c
|
Merge pull request #176 from SchrodingersGat/doc-fix
Fix for autoapi-dirs
|
2019-04-28 01:17:53 +10:00 |
|
Oliver Walters
|
e512bc6536
|
Fix for autoapi-dirs
|
2019-04-28 01:17:28 +10:00 |
|
 OliverandGitHub
|
9d9d755b4e
|
Merge pull request #175 from SchrodingersGat/doc-improvements
Doc improvements
|
2019-04-28 01:13:41 +10:00 |
|
Oliver Walters
|
d55ea1a982
|
PEP fixes
|
2019-04-28 01:09:48 +10:00 |
|
Oliver Walters
|
aa04941bf1
|
Add module-level docstrings for each app
|
2019-04-28 01:05:45 +10:00 |
|
Oliver Walters
|
b0487b33dc
|
Change documentation root url to 'docs'
|
2019-04-28 00:58:59 +10:00 |
|
Oliver Walters
|
3a43a8ba72
|
Add custom links to app documentation
|
2019-04-28 00:57:29 +10:00 |
|
Oliver Walters
|
c87166a49a
|
Prevent auto-addition of toc by autoapi
- Also fix links in sidebar
|
2019-04-28 00:37:20 +10:00 |
|
Oliver Walters
|
0d8f14d3e2
|
Add index and modindex to sidebar
- https://stackoverflow.com/questions/25243482/how-to-add-sphinx-generated-index-to-the-sidebar-when-using-read-the-docs-theme
|
2019-04-28 00:20:27 +10:00 |
|
Oliver Walters
|
4aef8eecea
|
Force TOC to appear in sidebar for each page
- https://stackoverflow.com/questions/18969093/how-to-include-the-toctree-in-the-sidebar-of-each-page#19007358
|
2019-04-28 00:03:19 +10:00 |
|
Oliver Walters
|
a499fd325e
|
Docstring for Stock app
|
2019-04-27 22:49:16 +10:00 |
|
Oliver Walters
|
ed3ae30248
|
Documentation for Part app
|
2019-04-27 22:18:07 +10:00 |
|
Oliver Walters
|
5e6d49102d
|
Add docstring documentation to the main InvenTree app
|
2019-04-27 21:21:58 +10:00 |
|
Oliver Walters
|
c3f0570926
|
Add docstring to Company app
|
2019-04-27 20:43:27 +10:00 |
|
Oliver Walters
|
d9169a0dd1
|
Add docstrings for Build app
|
2019-04-27 20:35:14 +10:00 |
|
 OliverandGitHub
|
6147ac3f06
|
Update README.md
Added documentation badge
|
2019-04-27 18:00:08 +10:00 |
|
 OliverandGitHub
|
87c4a9b1e9
|
Merge pull request #172 from SchrodingersGat/rtd
Update the .readthedocs.yml file
|
2019-04-27 17:57:49 +10:00 |
|
Oliver Walters
|
850e445fc2
|
Update the .readthedocs.yml file
|
2019-04-27 17:57:00 +10:00 |
|
 OliverandGitHub
|
cad5b4276c
|
Merge pull request #171 from SchrodingersGat/documentation
Configure automated documentation
|
2019-04-27 17:46:00 +10:00 |
|
Oliver Walters
|
22bfd970cc
|
Use v2 of readthedocs
|
2019-04-27 17:45:40 +10:00 |
|
Oliver Walters
|
6395894798
|
Add some more .gitignore stuff
|
2019-04-27 17:41:17 +10:00 |
|
Oliver Walters
|
0c573684fc
|
Add readthedocs configuration file
|
2019-04-27 17:35:45 +10:00 |
|
Oliver Walters
|
53ec42af03
|
Generate documentation from makefile
- Had to change 'docs' to 'documentation' to prevent directory clash
|
2019-04-27 17:22:23 +10:00 |
|
Oliver Walters
|
ad3defffe3
|
Use sphinx-autoapi to generate documentation files
- Select which files to ignore
- Only display items with a docstring
|
2019-04-27 17:19:51 +10:00 |
|
Oliver Walters
|
0cec12085d
|
Renamed key.py to keygen.py
|
2019-04-27 17:03:37 +10:00 |
|
Oliver Walters
|
8d0df6654c
|
Ignore migration files
|
2019-04-27 16:48:04 +10:00 |
|
Oliver Walters
|
e3440cbb90
|
Initialize sphinx documentation
- Change theme to sphinx_rtd_theme
- Ignore build files for docs
|
2019-04-27 16:09:52 +10:00 |
|
Oliver Walters
|
66cf8239fc
|
Add initial requirements for documentation
|
2019-04-27 15:44:46 +10:00 |
|
 OliverandGitHub
|
fee8616766
|
Merge pull request #170 from SchrodingersGat/more-api-tests
Added more API testing
|
2019-04-27 15:28:26 +10:00 |
|
Oliver Walters
|
0484e62836
|
PEP fixes
|
2019-04-27 15:25:40 +10:00 |
|
Oliver Walters
|
e7685951e1
|
Add (simple) test cases for Stock API
- Still a lot of work to do here
|
2019-04-27 15:24:30 +10:00 |
|
Oliver Walters
|
1fbea088dc
|
Added API test for Company app
|
2019-04-27 15:02:20 +10:00 |
|
Oliver Walters
|
241f9783ad
|
Added further testing for Part/Bom API
|
2019-04-27 14:50:49 +10:00 |
|
 OliverandGitHub
|
28d8252047
|
Merge pull request #168 from SchrodingersGat/supplier-part
Adjust SupplierPart supplier foreignkey
|
2019-04-27 13:29:52 +10:00 |
|
 OliverandGitHub
|
e0b76213c3
|
Merge pull request #169 from SchrodingersGat/stockitem-note
Allow editing of 'notes' field when creating new StockItem
|
2019-04-27 13:29:47 +10:00 |
|
Oliver Walters
|
030265cc2d
|
Allow editing of 'notes' field when creating new StockItem
|
2019-04-27 13:12:34 +10:00 |
|
Oliver Walters
|
95be2755f4
|
Adjust SupplierPart supplier foreignkey
- Limit choices to 'is_supplier'
|
2019-04-27 13:10:21 +10:00 |
|
 OliverandGitHub
|
d70137dcbd
|
Merge pull request #167 from SchrodingersGat/api-tests
Api tests
|
2019-04-27 01:07:53 +10:00 |
|
Oliver Walters
|
f111a42058
|
Added API tests for Part API
- Uses DRF APITestCase class
|
2019-04-27 01:03:11 +10:00 |
|
Oliver Walters
|
443041de3a
|
Update key_file generator script
- Prevent overwrite of key file if it already exists
- Option to force key file overwrite if required
|
2019-04-26 23:56:19 +10:00 |
|
 OliverandGitHub
|
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 |
|
 OliverandGitHub
|
040f719b68
|
Merge pull request #156 from SchrodingersGat/api-cleanup
Api cleanup
|
2019-04-26 23:40:10 +10:00 |
|
Oliver Walters
|
69b34a0ff2
|
Move 'duplicate' button to the Part options drop-down
|
2019-04-26 23:39:33 +10:00 |
|
Oliver Walters
|
529beb3d58
|
Abstract DRF serializer validation
- Subclass InvenTree.InvenTreeModelSerializer
- Ensures model data is checked too (after serializer checks are performed)
|
2019-04-26 23:34:15 +10:00 |
|
Oliver Walters
|
e57a8cdcd1
|
Fix rendering of BOM table view
- Edit and delete rows now works
|
2019-04-26 23:32:22 +10:00 |
|
Oliver Walters
|
cec61655cf
|
Fix table rendering for 'used_in' view
|
2019-04-26 23:12:06 +10:00 |
|
Oliver Walters
|
08aca6a5a8
|
Fix rendering for company part list
|
2019-04-26 23:08:13 +10:00 |
|
Oliver Walters
|
dee10e4922
|
Fix rendering of part supplier table
|
2019-04-26 23:04:08 +10:00 |
|
Oliver Walters
|
1c710e71a5
|
Modal forms now display non-field errors
- Critical for errors not relating to a particular field (e.g. unique_together)
- Ref: https://stackoverflow.com/questions/7419535/how-to-render-django-form-errors-not-in-a-ul
|
2019-04-26 23:01:04 +10:00 |
|
Oliver Walters
|
73282801c9
|
Fix for BOM display
- Perhaps need to make this cleaner, later on
- Is this too much data pushed through the API?
|
2019-04-26 22:41:29 +10:00 |
|
Oliver Walters
|
accec07fe9
|
BOM serializer now validates against model
- Need to call instance.clean()
- https://stackoverflow.com/questions/40697648/django-dry-model-form-serializer-validation
|
2019-04-26 22:36:44 +10:00 |
|
Oliver Walters
|
da540e1b26
|
Improve BOM API endpoint
- Origin at /api/bom
- Add detail view
- Add create power to list view
|
2019-04-26 21:44:38 +10:00 |
|
Oliver Walters
|
4e3b8bdd92
|
Remove draft feature from Part RUD endpoint
|
2019-04-26 21:44:38 +10:00 |
|
Oliver Walters
|
6c3041d99c
|
Remove 'draft' function from StockItem RUD endpoint
|
2019-04-26 21:44:38 +10:00 |
|
Oliver Walters
|
9ae5ea3876
|
Add RUD endpoint for Company
|
2019-04-26 21:44:38 +10:00 |
|
Oliver Walters
|
6f7082a919
|
Peppy
|
2019-04-26 21:44:38 +10:00 |
|
Oliver Walters
|
9b4e86f36a
|
Add ability to create a new supplierpart from the API
|
2019-04-26 21:44:37 +10:00 |
|
Oliver Walters
|
907bccf748
|
Add SupplierPart detail API
- RUD view
|
2019-04-26 21:44:37 +10:00 |
|
Oliver Walters
|
5ee339bb27
|
Add 'delete' button for supplier parts
|
2019-04-26 21:44:37 +10:00 |
|
 OliverandGitHub
|
948c118695
|
Merge pull request #164 from SchrodingersGat/search-page
Display available stock in part search page
|
2019-04-26 21:42:36 +10:00 |
|