Commit Graph

1166 Commits

Author SHA1 Message Date
Oliver Walters
1112e5e3e2 PEP fixes 2019-04-25 18:50:22 +10:00
Oliver Walters
2ab8276672 better coverage for part/models
- Increase from 57% to 67%
2019-04-25 17:51:02 +10:00
Oliver Walters
f36f02b27f Tests for stock app
- Increase coverage of Stock/models.py to 84%
2019-04-25 17:30:44 +10:00
Oliver
19001b98f7
Merge pull request #149 from SchrodingersGat/get_absolute_url
Get absolute url
2019-04-25 13:40:10 +10:00
Oliver
7fc77ccb10
Merge pull request #148 from SchrodingersGat/secret-key
SECRET_KEY is now generated by a script and stored as a local file
2019-04-25 09:38:10 +10:00
Oliver Walters
3c40418f04 100% coverage on company/models.py 2019-04-25 04:20:40 +10:00
Oliver Walters
6625d89eb2 Remove references to apps that don't yet exist 2019-04-25 03:34:56 +10:00
Oliver Walters
7b68310d73 PEP fixes 2019-04-25 03:20:25 +10:00
Oliver Walters
7c91c9ba79 Reverse URL for stock models
- stock location
- stock item
- stock tracking

- Added blank test files
2019-04-25 03:13:41 +10:00
Oliver Walters
b45b63545e Improved makefile
- Separate make for coverage of testing
- the 'test' option needs some work (have to pass all app names for some reason)
2019-04-25 03:12:41 +10:00
Oliver
d46afcdfe8
Merge pull request #147 from SchrodingersGat/coverage
Coverage
2019-04-25 01:40:15 +10:00
Oliver Walters
e6617fef80 reverse URL lookup for BomItem and SupplierPart
- created empty test files
2019-04-25 01:05:08 +10:00
Oliver
b092e00a71
Update README.md 2019-04-25 01:02:14 +10:00
Oliver Walters
0bc5617825 Reverse url lookup for Part model 2019-04-25 01:00:01 +10:00
Oliver Walters
f9db3b680d Reverse lookup for part category URL
- Added some test cases for PartCategory model
2019-04-25 00:28:40 +10:00
Oliver Walters
a2d4403968 Reverse lookup for company URL
- Added some simple tests
2019-04-24 23:55:11 +10:00
Oliver Walters
5098712d9c Use reverse to get Build URL
- Add test cases to Build
2019-04-24 23:47:39 +10:00
Oliver Walters
887250cd06 PEP fixes 2019-04-24 23:26:16 +10:00
Oliver Walters
40a18d0ce4 Ensure settings.py knows how to access secret_key.txt 2019-04-24 23:19:36 +10:00
Oliver Walters
7a65144641 Use random.choice instead of random.choices
- Allows compatibility with python3.5
2019-04-24 16:08:59 +10:00
Oliver Walters
3827806603 SECRET_KEY is now generated by a script and stored as a local file
- key file ignored from git
2019-04-24 16:01:47 +10:00
Oliver Walters
3ca5aba533 Fix typo 2019-04-24 15:36:45 +10:00
Oliver Walters
fa46f14f5d Run coveralls step after success 2019-04-24 15:32:50 +10:00
Oliver Walters
4e7e2b7295 Added source path to coveragerc 2019-04-24 15:24:45 +10:00
Oliver Walters
ff2ec3bfca Ignore generated reports 2019-04-24 15:22:21 +10:00
Oliver Walters
5996a17eca Ignore database migration files in coverage report 2019-04-24 15:21:44 +10:00
Oliver Walters
aca78e9d94 Add requirement for coverage module 2019-04-24 15:14:20 +10:00
Oliver
ecce8a6fec
Merge pull request #137 from SchrodingersGat/delete-old-forms
Delete old forms
2019-04-18 23:52:30 +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
2f268311b8
Merge pull request #136 from SchrodingersGat/duplicate-part
Duplicate part
2019-04-18 23:49:49 +10:00
Oliver Walters
456164f1d9 PEP fixes 2019-04-18 23:47:04 +10:00
Oliver Walters
41ee6320a8 Delete some other old templates 2019-04-18 23:44:15 +10:00
Oliver Walters
9e9aa02b90 Remove old templates from Stock 2019-04-18 23:41:17 +10:00
Oliver Walters
4f51258cf8 Removed old forms in Part 2019-04-18 23:39:05 +10:00
Oliver Walters
e57303ed37 Removed old forms from Company 2019-04-18 23:35:20 +10:00
Oliver Walters
0654fa7cc9 Deleted unused forms in Build
- These now use modal forms
- Removed redundant templates
2019-04-18 23:35:06 +10:00
Oliver Walters
8040ad8a6a Add function to duplicate stock item 2019-04-18 23:28:46 +10:00
Oliver Walters
05beb26c82 Change form title if part is being copied 2019-04-18 23:22:58 +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
deaaa48b7d Add ability to 'copy' a part
- Launch a PartCreate form
- initialize form data with the existing part (if it exists!)
- use model_to_dict to pass data around
2019-04-18 23:12:29 +10:00
Oliver Walters
590dedce13 Add some helper functions 2019-04-18 23:08:33 +10:00
Oliver
2191b7f719
Merge pull request #135 from SchrodingersGat/select-button-enable
Disable buttons that require row selection, until a selection has been made
2019-04-18 22:42:36 +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
ba72ced00c
Merge pull request #134 from SchrodingersGat/tweaks
Tweaks
2019-04-18 22:09:15 +10:00
Oliver Walters
bcebb1c73c Add select column to BOM table
- Doesn't do anything yet
2019-04-18 21:40:09 +10:00
Oliver Walters
8948536f0f Allow export of binary file data
- Use io.BytesIO for non-string-data file objects
2019-04-18 21:33:00 +10:00
Oliver Walters
5d887f3785 Remove 'simple-history'
- Might re-add it later on
2019-04-18 21:28:09 +10:00
Oliver Walters
88a7fa9656 Update logo colours 2019-04-18 09:16:16 +10:00
Oliver Walters
8dc3063765 Vertical centering for header image 2019-04-18 08:40:54 +10:00
Oliver Walters
18c48e9191 Split part details display into two columns 2019-04-18 08:33:25 +10:00