I have seen this issue brought up in 2018 and 2019 without a sufficient answer. I hope some of you can help.
Intended behavior:
We have inventory users, that we need to be able to validate inventory. They are in charge of decentral locations (Warehouses) for which they are responsible for inventory checks and adjustments. However we do not want to give them full admin rights to the inventory module.
Actual behavior:
User presses "Validate" button on an inventory adjustment. Error comes up: "Something went wrong! Only a stock manager can validate an inventory adjustment."
Previously suggested solutions have failed:
"Try changing domain restrictions for the validate button"
Doesn't work. Also all users can see the validate button already.
"Try Editing the view from debug mode, changing the restrictions on the validate button ( <button name="action_validate" string="Validate Inventory" type="object" attrs="{'invisible': ['|', ('state', '!=', 'confirm'), ('line_ids', '!=', [])]}" groups="stock.group_stock_manager"/>) from groups="stock.group_stock_manager" to groups="stock.group_stock_user" or by removing that attribute altogether."
This does not work either.
Is there any way this can be done in 13e?
And if not, can someone suggest a workaround that does not give all our inventory users full editing rights across the platform?
Can we duplicate the admin role, and create a restricted version of this?
Any other ideas?