~openerp-dev/openobject-client-web/6.0-opw-584287-xal

« back to all changes in this revision

Viewing changes to addons/openerp/static/javascript/openerp/openerp.base.js

  • Committer: Xavier ALT
  • Date: 2012-11-29 09:10:50 UTC
  • mfrom: (4889.1.2 6.0-opw-581388-xal)
  • Revision ID: xal@openerp.com-20121129091050-19fv60dvu5k62lfo
[MERGE] OPW 581388: force reload of content when opening a dialog (after button click) on an unsaved record

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
            }, null, {
185
185
                width: 800
186
186
            });
 
187
            if (terp_id && !$dialogs.length) {
 
188
                if (jQuery('#_terp_id').val() == 'False') {
 
189
                    // we are opening an action on an unsaved record,
 
190
                    // we have to reload the current view with the newly given id
 
191
                    window.top.editRecord(terp_id);
 
192
                }
 
193
            }
187
194
            break;
188
195
        case 'download':
189
196
            var $form = jQuery('<form action="" target="_blank" method="POST"><input type="text" name="download" value="true"/></form>').appendTo("body");