[IMP] account_voucher: added case2_usd_eur_debtor_in_eur.yml
[odoo/odoo.git] / openerp / pooler.py
index 88b6086..c754385 100644 (file)
@@ -34,6 +34,11 @@ def get_db_and_pool(db_name, force_demo=False, status=None, update_module=False,
     return registry.db, registry
 
 
+def delete_pool(db_name):
+    """Delete an existing registry."""
+    RegistryManager.delete(db_name)
+
+
 def restart_pool(db_name, force_demo=False, status=None, update_module=False):
     """Delete an existing registry and return a database connection and a newly initialized registry."""
     registry = RegistryManager.new(db_name, force_demo, status, update_module, True)