Bypass the "TAG STEP" on the upload document form wizard?

Hi,
my documents tags are drived by workflow, so I don’t need the step “select/add tag” in the upload document form wizard.

Is there a way to bypass this step ?

regards,

Hi,

In your custom app’s .ready() method add the following:

from mayan.apps.sources.classes import DocumentCreateWizardStep
from mayan.apps.tags.wizard_steps import DocumentCreateWizardStepTags

DocumentCreateWizardStep.deregister(step=DocumentCreateWizardStepTags)

This can also be added to any existing app but you will have to maintain a fork and build your own Docker images.

Hi,
thank you for the reply, I have mayan edms installed in docker.

I don’t understand in what file I have to add theses 3 rows:

from mayan.apps.sources.classes import DocumentCreateWizardStep
from mayan.apps.tags.wizard_steps import DocumentCreateWizardStepTags

DocumentCreateWizardStep.deregister(step=DocumentCreateWizardStepTags)

could you help a little bit more ?

Hi,

I don’t understand in what file I have to add theses 3 rows:

As mentioned above you need to add these lines to your own custom Mayan app’s .ready() method.

If you are not familiar with what this is, then is best not to attempt the change.

Disabling wizard steps is not a configuration task, it requires modifying the source code and building your own custom version of Mayan. This requires programming experience with Python, Django, Mayan, and Docker.

https://docs.mayan-edms.com/chapters/development/index.html

https://docs.mayan-edms.com/chapters/docker/building.html

Ok, I will not touch this then.