Merge pull request #823 from sebalix/master-fix-db-duplicate

[FIX] dbmanager duplicate db, use shutil.copytree to duplicate the filestore
This commit is contained in:
antonylesuisse 2014-06-29 04:43:57 +02:00
commit c4c13f1b61
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def exp_duplicate_database(db_original_name, db_name):
from_fs = openerp.tools.config.filestore(db_original_name)
to_fs = openerp.tools.config.filestore(db_name)
if os.path.exists(from_fs) and not os.path.exists(to_fs):
shutil.copy(from_fs, to_fs)
shutil.copytree(from_fs, to_fs)
return True
def exp_get_progress(id):