summaryrefslogtreecommitdiff
path: root/addons/base_import/static/src
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-12-07 17:06:16 +0100
committerAaron Bohy <aab@odoo.com>2017-12-15 13:07:34 +0100
commit7f467d2346567943581dc1cc3e523ecfcc9b3b13 (patch)
treebbf722b3fabb550006c5746e30a33e213fdc45e5 /addons/base_import/static/src
parent0ae15750d4b4688d75d53265088e478eeb357907 (diff)
[FIX] base_import: don't reload twice when leaving
The 'on_reverse_breadcrumbs' option of do_action() allows to define an handler to execute when coming back to the previous action by clicking on the breadcrumbs. This option was set when executing the Import client action, to ensure that the previous view was reloaded when the client action was left. However, the view to restore is always reloaded, so specifying the option in this case produces a double reload.
Diffstat (limited to 'addons/base_import/static/src')
-rw-r--r--addons/base_import/static/src/js/import_buttons.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/base_import/static/src/js/import_buttons.js b/addons/base_import/static/src/js/import_buttons.js
index 77d5d0e876e..6222420206d 100644
--- a/addons/base_import/static/src/js/import_buttons.js
+++ b/addons/base_import/static/src/js/import_buttons.js
@@ -50,8 +50,6 @@ var ImportControllerMixin = {
model: self.modelName,
context: state.getContext(),
}
- }, {
- on_reverse_breadcrumb: self.reload.bind(self),
});
});
}