~unifield-team/unifield-web/us-2156

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/templates/closepopup.mako

  • Committer: jf
  • Date: 2016-10-25 09:22:31 UTC
  • mfrom: (4808.3.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20161025092231-d5h632ltdcgnkpce
US-1170 [FIX] Form view should be kept as read-only after action: button clicked on form or sync launched from shortcut

lp:~fabien-morin/unifield-web/fm-us-1170

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
                                topWindow.location.href = '/openerp';
47
47
                                return;
48
48
                            } else {
49
 
                                topWindow.editRecord(terp_id);
 
49
                                var editable = jQuery(idSelector('_terp_editable'),$doc).val();
 
50
                                if (editable == "True") {
 
51
                                    topWindow.editRecord(terp_id);
 
52
                                } else {
 
53
                                    topWindow.viewRecord(terp_id);
 
54
                                }
50
55
                                return;
51
56
                            }
52
57
                        case 'tree':