summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-06-14 16:20:36 +0200
committerChristophe Simonis <chs@odoo.com>2019-06-14 17:29:51 +0200
commit131e478ae6ff96f922f154723eeb196cb7ee50fc (patch)
tree5fe8c0273a298f55f6c65fb85e33d63a53004066
parent34a8754d4f0a6dca7cf612859d5702bcae1f90d6 (diff)
[FIX] account: avoid usage of `this` in closure
Oversight of previous forward-port.
-rw-r--r--addons/account/static/src/js/reconciliation/reconciliation_renderer.js4
1 files 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;
});
});
}