pymysql.err.InternalError: (1054, “Unknown column ‘shareholder_name’ in ‘field list’”)
If this is say a recent upgrade, go to Customize Form select Shareholder DocType and Update it.
Other handy functions here: Set Permissions and Export Customizations
Another error that can arise from a migrate is this:
AttributeError: ‘NoneType’ object has no attribute ‘options’
Often the fix is to run bench reload-doc
(or Update as above that performs the same function).
To know what particular DocType to reload, it helps to see the full traceback. To learn the module where the DocType resides one can grep the code.
Here’s an example case [v12] Can't send Documents via Email after upgrading to v12 - #4 by jignesh_shah