summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorVincent Schippefilt <vsc@odoo.com>2019-12-04 10:44:32 +0000
committerVincent Schippefilt <vsc@odoo.com>2019-12-09 11:09:10 +0000
commitb0941d19a07b08fabc64a284b58e57edc46203dd (patch)
treea6b25026177d26a64c6c7f6005e27c41fca5c1b6 /addons/web/static/src
parent29726e8fd000cb09075f9b6b2a6a8d2ddaf4ef58 (diff)
[FIX] web,*: fix all tests and test utils to use native events
In this commit: - transformed test_utils helpers to always trigger native events - introduced new test_utils_create helper: prepareTarget - updated qunit asserts to support Owl Components - updated all misused helpers that would crash with the updated test_utils Co-authored-by: Julien Mougenot <jum@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Pierre Rousseau <pro@odoo.com>
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/form/form_renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js
index c064f67dcef..5d8e5715261 100644
--- a/addons/web/static/src/js/views/form/form_renderer.js
+++ b/addons/web/static/src/js/views/form/form_renderer.js
@@ -329,7 +329,7 @@ var FormRenderer = BasicRenderer.extend({
_addOnClickAction: function ($el, node) {
if (node.attrs.special || node.attrs.confirm || node.attrs.type || $el.hasClass('oe_stat_button')) {
var self = this;
- $el.click(function () {
+ $el.on("click", function () {
self.trigger_up('button_clicked', {
attrs: node.attrs,
record: self.state,