summaryrefslogtreecommitdiff
path: root/addons/stock/static/src/js/inventory_validate_button_controller.js
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2020-03-18 14:09:04 +0000
committersvs-odoo <svs@odoo.com>2020-03-19 08:01:30 +0000
commit96486de1c140511aa6b09fa37d2b911c822d8c3d (patch)
treef57a1b9a711daaa26a12c4637672a84ce15b4393 /addons/stock/static/src/js/inventory_validate_button_controller.js
parentd3c6e1fbc217cbec311c9b4185cd5251e70508ce (diff)
[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) <sle@openerp.com>
Diffstat (limited to 'addons/stock/static/src/js/inventory_validate_button_controller.js')
-rw-r--r--addons/stock/static/src/js/inventory_validate_button_controller.js4
1 files 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);
},
// -------------------------------------------------------------------------