コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5180 ビュー

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?

アバター
破棄
最善の回答

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á" :-)

アバター
破棄
著作者 最善の回答

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

アバター
破棄
最善の回答

Hi,

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


Hope it helps

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 24
1147
2
10月 24
1767
4
8月 24
8503
2
8月 24
4267
2
2月 24
4061