Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Modules marked as uninstalled, server fails to start

Gregor Rosenauer
on 3/14/16, 6:38 PM 395 views

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>


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.

On 3/15/16, 4:04 AM

Try to restart your server with --update=all option. This should fix it for you

Gregor Rosenauer
On 3/15/16, 4:24 AM

Thanks for the quick response, awesome it worked! You saved my day (or night;)

I've raised https://github.com/odoo/odoo/issues/11399, as closing the dialog means cancel, it should never have marked the modules for uninstall...

Quite right about the bug report, this is indeed really bad imho. Concerning the dependency, nearly all standard apps (besides board, which is just a view; and lunch, which is... well lunch) depends on Discuss (mail) for integrating the chatters (the message threads for sales orders, invoices, etc.). You'll never be able to remove it, I'm afraid. You could always hide the menu though...

Damien Bouvy (dbo)
on 3/16/16, 5:45 PM

Glad it helped you :)

on 3/17/16, 4:20 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/14/16, 6:38 PM
Seen: 395 times
Last updated: 3/15/16, 4:24 AM