quick fix for tranlated Krita versions… (another way to find the action, without using translated name.)
# Disable the related QDockWidget
from PyQt5.QtWidgets import QDockWidget
self.dockerAction = window.qwindow().findChild(QDockWidget, "sharedtooldocker").toggleViewAction()
self.dockerAction.setEnabled(False)
/AkiR