Force install a new module before migrate

Asked by Ignacio Ibeas (www.acysos.com)

Hello,

The are a method in OpenUpgrade that force to install a module before migration, because the new version has remove a function and it has to add with a new module.

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
OpenUpgrade Server Edit question
Assignee:
No assignee Edit question
Solved by:
Ignacio Ibeas (www.acysos.com)
Solved:
Last query:
Last reply:
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#1

Well, you cannot encode it in the migration script but you can add the 'force_deps' directive under an 'openupgrade' heading in the OpenUpgrade server configuration file:

    [openupgrade]
    force_deps = {'installed_module': ['new_dependency']}

I hope this helps. If it concerns the official addons we should encode it in the migration script for the base module. What is your example?

Cheers,
Stefan.

Revision history for this message
Ignacio Ibeas (www.acysos.com) (ignacio-acysos) said :
#2

Hello,

My example it's a extra addons module, from OpenERP 5 to OpenERP 6 the invoice sequence change and in Spain it's necessary install nan_account_invoice_sequence.

Thank you, and this help me.