Can I use alternative docstatus

Hello, folks! I’m asking my self if I can use alternative docstatus numbers, to control the fields that the user can access based on a workflow!

I know that docstatus have 3 restricted numbers 0, 1 and 2, I’m asking if I use any alternative number like 3, 4, 200, and put this status in the User Permissions, it only will allow the user to see/edit certain fields when the docstatus reach a condition?

@max_morais_dmm maybe have a separate status for permissions? This will involve large scale code change.

@max_morais_dmm To do quick fix, you can use permission query.

So, user can see only permitted document for assigned role.

1 Like

@kolate_sambhaji I was exactly what I was looking for! Thanks!

1 Like