Create entity: modal example

28-10-2019
``` let entity = S.getEntity("stock.deliveryLine") let panel = S.create("div") let buttons = S.create("div", "view_header_buttons", panel) new S.Button(T("@@Guardar"), "highlighted", buttons, () => { detail.save(() => { modal.close() }) }) new S.Button(T("@@Cancelar"), null, buttons, () => { S.setDirty(false) modal.close() }) let detail = new admin.EntityDetail(entity, { isModalView: true, skipProperties: ["idDelivery"] }) detail.renderHeaderFunc = null detail.render({ idDelivery: idDelivery }) panel.appendChild(detail.element) let title = T("@@Crear") + " " + T(entity.label || entity.name); let modal = new S.ModalWindow({ title: title, body: panel, className: "withPadding", buttons: null }) modal.show() ```
UI