Xavier ALT (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-19877-xal into 
lp:openobject-client-web.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-19877-xal/+merge/109702

Hi,

This fix a problem with "auto-complete" box of many2one fields not always 
hiding.

Steps:
- Go to an invoice
- type "a" in "Supplier" field, wait for the "auto-complete" to show
- click on the "looking-glass" of that field
- choose one result

Current: field is updated with choosen results but "autocomplete" does not hide.
Expected: field is updated, "autocomplet" is hidden

Cheers,
Xavier
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-19877-xal/+merge/109702
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-19877-xal.
=== modified file 'addons/openerp/static/javascript/m2o.js'
--- addons/openerp/static/javascript/m2o.js	2012-03-22 11:40:02 +0000
+++ addons/openerp/static/javascript/m2o.js	2012-06-11 18:46:19 +0000
@@ -396,6 +396,10 @@
     var domain = jQuery(this.field).attr('domain');
     var context = this.get_context();
 
+    // clear and hide autoComplete results box before getting matched
+    // datas
+    m2o.clearResults();
+
     eval_domain_context_request({
         source: this.name,
         domain: domain,

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to