Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5889 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор Найкраща відповідь

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

Glad it helped you :)

Related Posts Відповіді Переглядів Дія
6
січ. 20
21251
1
лист. 19
5134
1
бер. 24
1415
2
трав. 21
9456
2
лип. 20
4183