← Back to team overview

openerp-community team mailing list archive

[Merge] lp:~openerp-community/openerp-web/trunk-bug-1128962 into lp:openerp-web

 

pariket trivedi has proposed merging lp:~openerp-community/openerp-web/trunk-bug-1128962 into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #1128962 in OpenERP Web: "[Trunk / 7.0] Action buttons cause Error in O2M widget"
  https://bugs.launchpad.net/openerp-web/+bug/1128962

For more details, see:
https://code.launchpad.net/~openerp-community/openerp-web/trunk-bug-1128962/+merge/150730

O2m fields button Clicke event before view list are loaded
-- 
https://code.launchpad.net/~openerp-community/openerp-web/trunk-bug-1128962/+merge/150730
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openerp-web/trunk-bug-1128962.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2013-02-24 09:46:16 +0000
+++ addons/web/static/src/js/view_form.js	2013-02-27 07:30:30 +0000
@@ -3811,7 +3811,9 @@
             else
                 return $.when();
         }).done(function () {
-            self.handle_button(name, id, callback);
+             $.when(self.o2m.is_loaded).done(function() {
+                    self.handle_button(name, id, callback);
+             });
         });
     },
 


Follow ups