From 96486de1c140511aa6b09fa37d2b911c822d8c3d Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Wed, 18 Mar 2020 14:09:04 +0000 Subject: [PATCH] [FIX] stock: start/continue inventory Related to 18e5416636b19b0953b1e6e26bfaeab1ebecce4c Due to changes made into the related commit, the buttons to start or continue an inventory adjustment no more work. closes odoo/odoo#47795 Signed-off-by: Simon Lejeune (sle) --- .../static/src/js/inventory_validate_button_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ba7a40a9e7c..9b930c1e174 100644 --- a/addons/stock/static/src/js/inventory_validate_button_controller.js +++ b/addons/stock/static/src/js/inventory_validate_button_controller.js @@ -27,10 +27,10 @@ var InventoryValidationController = ListController.extend({ /** * @override */ - renderButtons: function ($node) { + renderButtons: function () { this._super.apply(this, arguments); var $validationButton = $(qweb.render('InventoryLines.Buttons')); - $validationButton.prependTo($node.find('.o_list_buttons')); + this.$buttons.prepend($validationButton); }, // -------------------------------------------------------------------------