跳至內容
選單
此問題已被標幟
3 回覆
5585 瀏覽次數

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
1289
2
10月 24
2082
4
8月 24
8741
2
8月 24
4390
2
2月 24
4329