Closed ETSJustin closed 5 years ago
@ETSJustin Hi,
Can you tell me which version of OdooRPC you are using? Did you login on the db (with odoo.login
) before dropping it?
It may be not related, but I made a fix few days ago related to db.drop
to force the logout if a session is opened on the db to drop (not released yet): https://github.com/OCA/odoorpc/pull/42 , feel free to test the master
branch.
Hi @sebalix
I am using OdooRPC 0.7.0 (sorry for neglecting to mention this earlier).
Nope, the affected script does not login to Odoo before the drop, though it is more that likely that the account is logged on on a browser somewhere.
If I can work out how to run against the master branch I will give it a go!
Thanks
@ETSJustin to install the master branch, you can do that:
$ pip install git+https://github.com/OCA/odoorpc.git@master --upgrade [--user]
Closing as no more answers.
I have a curious problem when using odoo.db.drop on the last (large) Odoo database.
If I attempt to use odoorpc to drop the last remaining database on an Odoo server I get back the following error (even though the database is actually dropped):
Looking at the Odoo server log I see:
I have tried a few permutations of drop and it appears to only throw this error if the dropped database is the last remaining AND it is a largish database. Otherwise, the drop command completes without error.
I have, as a workaround, decided to silently consume this error and to independently verify that the database has been dropped, so this issue is not currently holding me up.