[grid] [bom] fixes erpnext #514, #515, wnframework #187
[company] [setup] added on_doctype_update to add indexes, renamed make_obj to make_controller