Quality Inspect Wizard Access Rights

I have the quality module installed. And in a custom module, I have a o2m in the production model, that o2m has a button to transitioning a state field of the o2m model to the state ‘done’, and in the done method of that o2m model, it also passes the production to ‘done’ state.
The problem that I have is that in the done method of production, a decorator is added in the quality module to execute the ‘quality.inspect’ wizard and when I pass the o2m state to ‘done’ it throws the error that I don’t have the access rights to execute the wizard from the o2m model.
Does this behaviour make sense or is a bug that should be fixed?

Indeed it is a design limitation of raising ButtonActionException which can not specify the records on which it should be run.

See Allow to define model and ids in wizard action values (#13747) · Issues · Tryton / Tryton · GitLab