diff options
| author | Priyanka Kakadiya <pka@odoo.com> | 2019-09-17 06:56:39 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2019-09-27 14:45:51 +0000 |
| commit | 9b57bfb6a2dcceaa224a64ff8dcfbe7bc6993b1e (patch) | |
| tree | 9afdd9146a99b459019cf5b45671ae9a21c1ad5c /addons/stock/static | |
| parent | 69bf106a47592d7f868a54b18f8f80ee0491a457 (diff) | |
[FIX] web, *: button special not working to close dialog
*: event_sale
mail
sale_product_connfigurator
stock
Before this commit: if we open dialog from acitivity view and try to
discard it (i.e. close it), it throws traceback.
Issue arises from following commits:
https://github.com/odoo/odoo/commit/d3d576cf8ec9e5b5f6ae5f9d8845cf384435f12d
https://github.com/odoo/odoo/commit/3210f108272be89f1a7b01f4e1816b7f04ae0a3b
Previously, special attribute was passed directly, but now `on_close`
gets action info as an object.
After this commit, it passes special key as an object for `on_close`,
also changed special action based logic in other modules.
Task-Id 2072181
closes odoo/odoo#37078
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/stock/static')
| -rw-r--r-- | addons/stock/static/src/js/inventory_validate_button_controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/static/src/js/inventory_validate_button_controller.js b/addons/stock/static/src/js/inventory_validate_button_controller.js index ac5367b8d25..3e6899ae0c7 100644 --- a/addons/stock/static/src/js/inventory_validate_button_controller.js +++ b/addons/stock/static/src/js/inventory_validate_button_controller.js @@ -64,7 +64,7 @@ var InventoryValidationController = ListController.extend({ var exitCallback = function (infos) { // In case we discarded a wizard, we do nothing to stay on // the same view... - if (infos === 'special') { + if (infos && infos.special) { return; } // ... but in any other cases, we go back on the inventory form. |
