Make notes widget "generic" (#327)

* Make notes widget "generic"

- No longer tied to the "part" model
- Will allow us to use it elsewhere

* Update release notes

* Add helper methods for checking model permissions

* Refactoring of permissions checks

* Add notes to the "purchase order" widget

* Fix typos

* remove bom tab from part view

* linting fixes
This commit is contained in:
Oliver 2023-04-19 21:57:28 +10:00 committed by GitHub
parent 28ed1ed545
commit b9ffabd561
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 192 additions and 168 deletions

View file

@ -23,6 +23,9 @@ class InvenTreePartCategory extends InvenTreeModel {
@override
String get URL => "part/category/";
@override
List<String> get rolesRequired => ["part_category"];
@override
Map<String, dynamic> formFields() {
@ -182,6 +185,9 @@ class InvenTreePart extends InvenTreeModel {
@override
String get URL => "part/";
@override
List<String> get rolesRequired => ["part"];
@override
Map<String, dynamic> formFields() {
return {