Merge lp:~unifield-team/unifield-web/OEB38_m2o_editable into lp:unifield-web

Proposed by Matthieu Dietrich @ camptocamp
Status: Merged
Merged at revision: 4554
Proposed branch: lp:~unifield-team/unifield-web/OEB38_m2o_editable
Merge into: lp:unifield-web
Diff against target: 16 lines (+5/-1)
1 file modified
addons/openerp/static/javascript/m2o.js (+5/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/OEB38_m2o_editable
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+67054@code.launchpad.net
To post a comment you must log in.
4552. By Matthieu Dietrich @ camptocamp

[FIX] OEB-38: m2o: field can become non-editable

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'addons/openerp/static/javascript/m2o.js'
--- addons/openerp/static/javascript/m2o.js 2011-06-22 09:33:54 +0000
+++ addons/openerp/static/javascript/m2o.js 2011-07-06 14:51:42 +0000
@@ -412,7 +412,11 @@
412 m2o.on_change();412 m2o.on_change();
413 } else {413 } else {
414 var id = jQuery(m2o.field).attr('id');414 var id = jQuery(m2o.field).attr('id');
415 jQuery(idSelector(id + '_text')).val('');415 // If the text on m2o field is related to any existing ID,
416 // we won't set the text to blank while clicking on search
417 if (!m2o.field.value) {
418 jQuery(idSelector(id + '_text')).val('');
419 }
416 open_search_window(m2o.relation, domain, context, m2o.name, 1, text);420 open_search_window(m2o.relation, domain, context, m2o.name, 1, text);
417 }421 }
418 }, 'json');422 }, 'json');

Subscribers

People subscribed via source and target branches

to all changes: