From b7964b2e691bb1b0bd0511670b6bd2faebaf8bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 10 May 2013 17:48:20 +0200 Subject: [PATCH] Fix Many2One form widget behavior - direct match set the rec_name - replace missing changed event by keyup and comparison - fix usage of model --- src/view.js | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/src/view.js b/src/view.js index 939aadb904..b62ee7e7db 100644 --- a/src/view.js +++ b/src/view.js @@ -1257,7 +1257,7 @@ this.entry = jQuery('', { 'type': 'input' }); - this.entry.on('keydown', this.key_press.bind(this)); + this.entry.on('keyup', this.key_press.bind(this)); this.el.append(this.entry); this.but_open = jQuery('