Company Custom Field

Hi guys,

I encounter this problem when developing an App.
Basically, if I try adding a Custom Field to Company Doctype, at the end of the Setup Wizard it will fail.
After checking, I figure out it’s because of the query that create the Company, it includes the new Custom Field while in database there is no correspondent column. Do we have any solution for it ? Should I use another method to install Custom Field to Company ?

Thank you!

Add a hook to the after_install method to add that particular field.

custom fields should be added before setup wizard though

1 Like