diff options
| author | noz (OpenERP) <noz@tinyerp.com> | 2011-07-01 17:54:30 +0530 |
|---|---|---|
| committer | noz (OpenERP) <noz@tinyerp.com> | 2011-07-01 17:54:30 +0530 |
| commit | 38340f448d069bf44ce685b99594491abed2ed17 (patch) | |
| tree | 50c634ce1e08c1901c4225a2fc78d0a52e110abe /addons/base/static/src | |
| parent | dc2cdac7e03db3c8732e17f16053eeafeb800523 (diff) | |
[FIX] Created common method for all Database operations.
bzr revid: noz@tinyerp.com-20110701122430-lhomemgtfay5jeev
Diffstat (limited to 'addons/base/static/src')
| -rw-r--r-- | addons/base/static/src/js/chrome.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base/static/src/js/chrome.js b/addons/base/static/src/js/chrome.js index a2a243790df..7e19d138ff0 100644 --- a/addons/base/static/src/js/chrome.js +++ b/addons/base/static/src/js/chrome.js @@ -944,7 +944,7 @@ openerp.base.Database = openerp.base.Controller.extend({ var password = self.$option_id.find("input[name=drop_password]").val(); if (confirm("Do you really want to delete the database: " + db + " ?")) { - self.rpc("/base/session/drop_db", {'db': db, 'password': password}, + self.rpc("/base/session/db_operation", {'flag': 'drop', 'db': db, 'password': password}, function(result) { self.$option_id.find("select[name=drop_db] :selected").remove(); self.notification.notify("Dropping database", "The database '" + db + "' has been dropped"); |
