← Back to team overview

credativ team mailing list archive

[Merge] lp:~credativ/openobject-client-web/fix-refresh-loop into lp:openobject-client-web/6.0

 

Craig Gowing has proposed merging lp:~credativ/openobject-client-web/fix-refresh-loop into lp:openobject-client-web/6.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #884755 in OpenERP Web Client: "[6.0] Infinite screen refresh loop when adding to one2many field"
  https://bugs.launchpad.net/openobject-client-web/+bug/884755

For more details, see:
https://code.launchpad.net/~credativ/openobject-client-web/fix-refresh-loop/+merge/80903
-- 
https://code.launchpad.net/~credativ/openobject-client-web/fix-refresh-loop/+merge/80903
Your team Credativ is subscribed to branch lp:~credativ/openobject-client-web/fix-refresh-loop.
=== modified file 'addons/openerp/widgets/form/templates/one2many.mako'
--- addons/openerp/widgets/form/templates/one2many.mako	2011-01-18 20:50:22 +0000
+++ addons/openerp/widgets/form/templates/one2many.mako	2011-11-01 14:06:24 +0000
@@ -66,7 +66,7 @@
         % endif
     </tr>
     % if screen.editable and not readonly and view_type == 'tree':
-        % if name == source and not edition:
+        % if name == source and parent_id and not edition:
             <script type="text/javascript">
                 jQuery(document).ready(function() {
                     new One2Many('${name}', jQuery('table.one2many[id=_o2m_${name}]').attr('detail')).create();


Follow ups