[FIX] web: Reload page after archive with action
For the moment, when we click on (un)archive and if the toggle_active retrieve an action to execute, the page isn't reloaded at the end. id=2072891 closes odoo/odoo#37027 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -1199,7 +1199,7 @@ var BasicModel = AbstractModel.extend({
|
||||
if (!_.isEmpty(action)) {
|
||||
return self.do_action(action, {
|
||||
on_close: function () {
|
||||
return self.reload(parentID);
|
||||
return self.trigger_up('reload');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -1231,7 +1231,7 @@ var BasicModel = AbstractModel.extend({
|
||||
if (!_.isEmpty(action)) {
|
||||
return self.do_action(action, {
|
||||
on_close: function () {
|
||||
return self.reload(parentID);
|
||||
return self.trigger_up('reload');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -1263,7 +1263,7 @@ var BasicModel = AbstractModel.extend({
|
||||
if (!_.isEmpty(action)) {
|
||||
return self.do_action(action, {
|
||||
on_close: function () {
|
||||
return self.reload(parentID);
|
||||
return self.trigger_up('reload');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user