Add support for non-administrators to edit products

Description

Currently, users must have administrator rights access to edit products.
To allow some users to edit products without granting full admin access:

  • add a Stock Manager role.
    This grants users permissions to manage Product Batches, Adjustments, Transfers, Orders and Deliveries, create and update Suppliers

  • add a Stock Administrator role

This grants users grants permission to manage Products, remove Supplier Orders and Deliveries, remove Suppliers, import and export and sync with Smart Flow Sheet.

  • remove the Stock Control role, associating the Stock Manager and Stock Administrator roles with any user that currently have it

  • replace product entity relationships with entity links. Entity relationships require the user to have permission to save both the source and target of the relationship. The following relationships are affected:

** entityRelationship.productDocument → entityLink.productDocument

** entityRelationship.productEquivalent → entityLink.productEquivalent

** entityRelationship.productInvestigationType → entityLink.productInvestigationType

** entityRelationship.productReminder → entityLink.productReminder

 

 

NOTE: users with individual product authorities will not be supported i.e. in order to edit or remove products, product.* archetypes must be used.

Environment

None

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Priority

Minor
Configure