~unifield-team/unifield-web/uf-1309

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2012-08-24 15:49:29 UTC
  • mfrom: (4660.2.4 unifield-web)
  • Revision ID: jf@tempo4-20120824154929-chzeeqc9ixloys2p
UF-1299 [IMP] Add a button to change the destination location of an INT confirmed/available/not available...
UF-1315 [IMP] Lines are editable while o2m is readonly - readonly policy conflict?
OEB-13 [FIX] fix popup create a new record instead of reloading content when clicking on a button
UF-1296 [IMP] Inconsistent warning message at the "scheduler run"
lp:~unifield-team/unifield-web/web_uf_1299
lp:~unifield-team/unifield-web/uf_1296_action_empty_ids

Show diffs side-by-side

added added

removed removed

Lines of Context:
323
323
        ManyToOne(field_id).setReadonly(readonly);
324
324
    }
325
325
 
326
 
    if (!kind && (jQuery(idSelector(field_id+'_btn_')).length || jQuery(idSelector('_o2m'+field_id)).length)) { // one2many
 
326
    if (!kind && (jQuery(idSelector(field_id+'_btn_')).length || jQuery(idSelector('_o2m_'+field_id)).length)) { // one2many
327
327
        new One2Many(field_id).setReadonly(readonly);
328
328
        return;
329
329
    }