Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5879 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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...

Awatar
Odrzuć

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...

Glad it helped you :)

Powiązane posty Odpowiedzi Widoki Czynność
6
sty 20
21247
1
lis 19
5111
1
mar 24
1411
2
maj 21
9450
2
lip 20
4180