Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
5173 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 24
1142
Exception in cron Решено
2
окт. 24
1754
4
авг. 24
8499
2
авг. 24
4265
2
февр. 24
4049