eeintech
72c7ceb553
Merged master and updated stock_table.html
2021-01-17 13:11:59 -05: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
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
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
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
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
Oliver Walters
a0d1f95171
Add exception for new database table
2021-01-09 08:10:04 +11:00
eeintech
1ef5a2b481
Display permission levels for each ruleset in Group admin list view
2020-12-10 15:38:48 -05:00
Oliver Walters
cb3c86f87a
Merge remote-tracking branch 'inventree/master' into currency-support
...
# Conflicts:
# InvenTree/InvenTree/settings.py
# InvenTree/InvenTree/urls.py
# InvenTree/templates/InvenTree/settings/tabs.html
# InvenTree/users/models.py
# requirements.txt
IMPORTANT: Had to merge some migration files due to different migrations applied on the part model tables
2020-11-12 17:24:48 +11:00
Francois
a7444a9926
Merge branch 'master' into categories_parameters
2020-11-11 06:40:11 -05:00
Oliver Walters
56765d3f5a
Fix for unit testing
2020-11-11 15:19:15 +11:00
Oliver Walters
5567ad07fd
Update tests and translations
2020-11-11 00:31:39 +11:00
Oliver Walters
4dff18e4a6
Remove common_currency model entirely
...
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
eeintech
684db67733
Added check for remove too
2020-11-05 09:37:01 -05:00
eeintech
0b76d1d036
Check if permission is not NoneType before adding to group
2020-11-05 09:34:18 -05:00
Francois
b1885138de
Merge branch 'master' into categories_parameters
2020-11-03 07:01:56 -05:00
Oliver Walters
083dac1300
Merge remote-tracking branch 'inventree/master' into build-fixes
2020-11-03 21:26:39 +11:00
Oliver
1c503adced
Merge pull request #1026 from eeintech/user_unique_group_validation
...
Added check for multiple groups assigned to user
2020-11-03 21:21:08 +11:00
Oliver Walters
2b91f69c7d
Fix unit tests
2020-11-03 20:19:24 +11:00
eeintech
5310ce8465
First step into managing Category Parameters to InvenTree settings
2020-10-30 17:17:18 -05:00
eeintech
0b26d68d0f
Added admin view, improved validation of part related relationship
2020-10-16 15:29:58 -05:00
eeintech
01eee4d208
Fixed style
2020-10-06 10:40:58 -05:00
eeintech
8499ced636
Changed from validation error to warning message when group instance is saved
2020-10-06 10:38:06 -05:00
eeintech
19a2326638
Merge branch 'master' of git://github.com/inventree/InvenTree into user_unique_group_validation
2020-10-06 10:04:35 -05:00
Oliver Walters
1c97aaf87a
Set permissions for order views
2020-10-06 19:46:53 +11:00
Oliver Walters
88f73443ee
Yet more style fixes
2020-10-06 16:43:39 +11:00
Oliver Walters
77a2b6de8b
Merge branch 'part-permissions' of https://github.com/SchrodingersGat/InvenTree into part-permissions
2020-10-06 16:03:33 +11:00
Oliver Walters
b3e4efd96e
Unit testing fixes
2020-10-06 16:03:19 +11:00
Oliver
e076470305
Merge branch 'master' into part-permissions
2020-10-06 12:35:45 +11:00
Oliver Walters
d691b15f4b
Fix conflicts
2020-10-06 12:34:30 +11:00
Oliver Walters
dc2c9aa662
Add InvenTreeRoleMixin
...
- Simplifies permission requirements for views
- e.g. 'part.view' rather than 'part.view_partcategory'
2020-10-06 11:29:38 +11:00
Oliver Walters
556ffa1099
Change label for permissions to match django permission names
2020-10-06 09:28:05 +11:00
eeintech
911b23ca24
Added validation logic for user list to Group admin form
2020-10-05 13:12:52 -05:00
eeintech
d980da7247
Fixed permission assign test unit
2020-10-05 10:52:47 -05:00
eeintech
c910307ce5
Only saving Group model rulesets on instance creation and when inlines are saved
2020-10-05 10:04:54 -05:00
Oliver Walters
806a7f961d
Fixes for role permissions
...
- Fixed a strange interaction if multiple rulesets referred to the same models
- Order of operations was incorrect.
- Now is good? Yes!
2020-10-05 22:57:05 +11:00
Oliver Walters
898c604b3b
Fix incorrect permission names
...
- Uses the app_model name, *NOT* the name of the database table
- Adds extra tests to ensure that permissions get assigned and removed correctly
2020-10-05 08:55:15 +11:00
Oliver Walters
095ef51991
Cleanup unit testing
2020-10-05 08:29:36 +11:00
Oliver Walters
fb09f53dc9
Add missing migration file
2020-10-04 12:58:45 +11:00
Oliver Walters
929411e49a
Remove "general" ruleset
2020-10-04 12:53:24 +11:00
Oliver Walters
31b699d521
Hide "user permissions" view from the admin interface
2020-10-04 12:47:19 +11:00
Oliver Walters
cda52a58e3
Remove manual 'permissions' control from groups admin interface
...
- Does not actually *do* anything any more as the RuleSet approach overrides it anyway
2020-10-04 12:19:56 +11:00
Oliver Walters
c19c014f55
Add or remove permissions from groups as defined by the RuleSet links
...
- Only runs when the group is changed
- Does not add permissions if they already exist
- Does not remove permissions if they do not exist
2020-10-04 12:18:31 +11:00
Oliver Walters
d5c0c12d78
Add some more unit testing
...
- ALL models must be covered by rulesets
- Added a RULESET_IGNORE list for models we do not want permissions for
2020-10-04 11:03:14 +11:00