modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-form.js.ftl
changeset 28028 16d5a95d9323
parent 28027 1642a25637a9
child 28121 d9584faf499b
equal deleted inserted replaced
28027:1642a25637a9 28028:16d5a95d9323
    49         }
    49         }
    50         <#elseif field.readOnlyIf != "" && field.showIf != "">
    50         <#elseif field.readOnlyIf != "" && field.showIf != "">
    51         // Applying display logic and readonly in grid/form.
    51         // Applying display logic and readonly in grid/form.
    52         if (!this.view.isShowingForm) {
    52         if (!this.view.isShowingForm) {
    53            f.disableItem('${field.name}', (${field.readOnlyIf}) || (${field.showIf}) === false);
    53            f.disableItem('${field.name}', (${field.readOnlyIf}) || (${field.showIf}) === false);
    54         }else{
    54         } else {
    55            f.disableItem('${field.name}', ${field.readOnlyIf});
    55            f.disableItem('${field.name}', ${field.readOnlyIf});
    56         }
    56         }
    57         </#if>
    57         </#if>
    58         </#list>
    58         </#list>
    59         // disable forced in case the fields are set as read only per role
    59         // disable forced in case the fields are set as read only per role