Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
5166 Visualizzazioni

Hi!

I moved an odoo database from one instance to another. In this second instance, the database should be neutralized.

Before, when the database was small, I could easily do this through the web interface. However, downloading and uploading a multi-GB zip file is not practical.

So, I copied over the filestore and db dump manually from one to the other host/instance. Now, I want to neutralize the database on the new host.

I already figured out I have to add a system parameter with key database.is_neutralized with value true​, but I would also like to get the red neutralized warning banner on top.

I believe I can add it manually, copying over views from another database, but I feel unsure this is the correct way of approaching this. Also, is the database *actually* neutralized?

In short, is there an easy option, from the command line or in the UI to neutralize a database after it has been restored?

Avatar
Abbandona
Risposta migliore

The best and more suitable way to acheive it is by using the framework itself on the CLI.
Just execute the command:

/path_to_odoo_folder/odoo-bin neutralize -d name_of_database

... and "voilá" :-)

Avatar
Abbandona
Autore Risposta migliore

Hi!

Thanks for answering. I am aware of this option, however, the database file is too big to conveniently upload over HTTP. That's why I am looking for another way to neutralize a database.

However, I now came to think that simply setting the system parameter database.is_neutralized​ to true​ is sufficient after well.

Unless someone contradicts me on this...?

Avatar
Abbandona
Risposta migliore

Hi,

You can enable the boolean Neutralize while restoring your database. By doing this you can get the Red banner


Hope it helps

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 24
1136
2
ott 24
1750
4
ago 24
8496
2
ago 24
4263
2
feb 24
4045