While streamlining my nicely working Odoo 9.0c nightly installation, I wanted to uninstall unneeded modules that would just confuse the user, in this case, the discussion module.
Sadly, I hit a real bug here, and broke my installation (at least temporarily).
After clicking "uninstall" in the apps list (running in developer mode since I wanted to install another module and update the list later), a dialog came up that listed a lot of core modules that would be uninstalled along with the discussion module (sales, crm,... - it's really beyond me why it would be related in any way!).
So I *bailed out* of the dialog by clicking the close icon (I should probably have explicitly clicked on "Cancel").
After that, I saw all modules that were listed as dependant and that would be removed along with Discussions module marked for deinstallation.
I started enabling them again, one by one, by hand - but at some point, the web interface stopped working, and restarting the server just gave me this error:
ParseError: "The ID "sales_team.team_sales_department" refers to an uninstalled module" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/crm/crm_data.xml:16, near
<record model="crm.team" id="sales_team.team_sales_department">
<field name="use_leads">True</field>
<field name="alias_name">sales</field>
</record>
How can I rescue my installation? I've invested quite some work into it, including importing data etc., and while my database is still OK, I don't want to go through it again, also sadly have no backup of the Odoo installation:(
Using Debian Linux 8.3/testing with latest nightly as of today and PostgreSQL 9.5.