I am unable to uninstall my custom module. When I m trying to uninstall module it gives me below error:
File "/home/nehal/workspace/openerp/server/openerp/addons/base/module/module.py", line 477, in _button_immediate_function
_, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/home/nehal/workspace/openerp/server/openerp/pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module)
File "/home/nehal/workspace/openerp/server/openerp/modules/registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/nehal/workspace/openerp/server/openerp/modules/loading.py", line 421, in load_modules
pool.get('ir.module.module').module_uninstall(cr, SUPERUSER_ID, mod_ids_to_remove)
File "/home/nehal/workspace/openerp/server/openerp/addons/base/module/module.py", line 441, in module_uninstall
ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)
File "/home/nehal/workspace/openerp/server/openerp/addons/base/ir/ir_model.py", line 537, in _module_data_uninstall
print "name, model_obj._table",name, model_obj._table
AttributeError: 'NoneType' object has no attribute '_table'