From 131e478ae6ff96f922f154723eeb196cb7ee50fc Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 14 Jun 2019 16:20:36 +0200 Subject: [PATCH] [FIX] account: avoid usage of `this` in closure Oversight of previous forward-port. --- .../static/src/js/reconciliation/reconciliation_renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js index 01e18865480..e6be300714d 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js @@ -478,9 +478,9 @@ var LineRenderer = Widget.extend(FieldManagerMixin, { }); if (state.to_check) { // Set the to_check field to true if global to_check is set - this.$('.create_to_check input').prop('checked', state.to_check).change(); + self.$('.create_to_check input').prop('checked', state.to_check).change(); } - return true; + return true; }); }); }