-
Notifications
You must be signed in to change notification settings - Fork 91
/
formio_demo_data.xml
19 lines (17 loc) · 7.76 KB
/
formio_demo_data.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright Nova Code (http://www.novacode.nl)
See LICENSE file for full licensing details. -->
<odoo>
<data noupdate="1">
<record id="formio_res_model_sale_order" model="formio.res.model">
<field name="ir_model_id" ref="sale.model_sale_order"/>
</record>
<record id="formio_builder_sale_demo" model="formio.builder">
<field name="name">sale_demo_1</field>
<field name="title">Demo Sale 1</field>
<field name="formio_version_id" ref="formio.version_4_9_23"/>
<field name="formio_res_model_id" ref="formio_sale.formio_res_model_sale_order"/>
<field name="schema">{"components": [{"label": "Columns", "columns": [{"components": [{"label": "Sale Order", "labelPosition": "top", "placeholder": "", "description": "", "tooltip": "", "prefix": "", "suffix": "", "widget": {"type": "input"}, "inputMask": "", "allowMultipleMasks": false, "customClass": "", "tabindex": "", "hidden": false, "hideLabel": false, "showWordCount": false, "showCharCount": false, "mask": false, "autofocus": false, "spellcheck": true, "disabled": true, "alwaysEnabled": false, "tableView": true, "multiple": false, "defaultValue": "", "persistent": true, "inputFormat": "plain", "protected": false, "dbIndex": false, "case": "", "encrypted": false, "redrawOn": "", "clearOnHide": true, "customDefaultValue": "", "calculateValue": "", "allowCalculateOverride": false, "validateOn": "change", "validate": {"required": false, "pattern": "", "customMessage": "", "custom": "", "customPrivate": false, "json": "", "minLength": "", "maxLength": "", "strictDateValidation": false}, "unique": false, "errorLabel": "", "key": "Odoo__name", "tags": "", "properties": {}, "conditional": {"show": null, "when": null, "eq": "", "json": ""}, "customConditional": "", "logic": [], "attributes": {}, "overlay": {"style": "", "page": "", "left": "", "top": "", "width": "", "height": ""}, "type": "textfield", "input": true, "refreshOn": "", "inputType": "text", "hideOnChildrenHidden": false, "id": "e8b1gao"}], "width": 6, "offset": 0, "push": 0, "pull": 0}, {"components": [{"label": "Customer", "labelPosition": "top", "placeholder": "", "description": "", "tooltip": "", "prefix": "", "suffix": "", "widget": {"type": "input"}, "inputMask": "", "allowMultipleMasks": false, "customClass": "", "tabindex": "", "hidden": false, "hideLabel": false, "showWordCount": false, "showCharCount": false, "mask": false, "autofocus": false, "spellcheck": true, "disabled": true, "alwaysEnabled": false, "tableView": true, "multiple": false, "defaultValue": "", "persistent": true, "inputFormat": "plain", "protected": false, "dbIndex": false, "case": "", "encrypted": false, "redrawOn": "", "clearOnHide": true, "customDefaultValue": "", "calculateValue": "", "allowCalculateOverride": false, "validateOn": "change", "validate": {"required": false, "pattern": "", "customMessage": "", "custom": "", "customPrivate": false, "json": "", "minLength": "", "maxLength": "", "strictDateValidation": false}, "unique": false, "errorLabel": "", "key": "Odoo__partner_id__name", "tags": "", "properties": {}, "conditional": {"show": null, "when": null, "eq": "", "json": ""}, "customConditional": "", "logic": [], "attributes": {}, "overlay": {"style": "", "page": "", "left": "", "top": "", "width": "", "height": ""}, "type": "textfield", "input": true, "refreshOn": "", "inputType": "text", "hideOnChildrenHidden": false, "id": "ez338x3"}], "width": 6, "offset": 0, "push": 0, "pull": 0}], "key": "columns", "type": "columns", "input": false, "path": "columns"}, {"label": "Order Lines", "disableAddingRemovingRows": true, "reorder": false, "addAnotherPosition": "bottom", "defaultOpen": true, "layoutFixed": false, "enableRowGroups": false, "key": "Odoo__order_line", "type": "datagrid", "input": true, "components": [{"label": "Product", "spellcheck": true, "disabled": true, "key": "product_id__name", "type": "textfield", "input": true}, {"label": "Quantity", "mask": false, "spellcheck": true, "disabled": true, "delimiter": false, "requireDecimal": false, "inputFormat": "plain", "key": "product_uom_qty", "type": "number", "input": true}, {"label": "Price", "mask": false, "spellcheck": true, "disabled": true, "currency": "USD", "inputFormat": "plain", "key": "price_unit", "type": "currency", "input": true, "delimiter": true}, {"label": "Check on Delivery", "defaultValue": false, "key": "checkbox", "type": "checkbox", "input": true}], "path": "orderLines1"}, {"label": "Comments", "autoExpand": false, "spellcheck": true, "key": "comments", "type": "textarea", "input": true}, {"label": "Columns", "columns": [{"components": [{"label": "Save as Draft", "action": "saveState", "showValidations": false, "theme": "secondary", "size": "md", "block": false, "leftIcon": "", "rightIcon": "", "shortcut": "", "description": "", "tooltip": "", "customClass": "", "tabindex": "", "disableOnInvalid": false, "hidden": false, "autofocus": false, "disabled": false, "alwaysEnabled": false, "tableView": true, "key": "saveDraft", "tags": "", "properties": {"submit": "false"}, "conditional": {"show": "", "when": "", "eq": "", "json": ""}, "customConditional": "", "logic": [], "attributes": {}, "overlay": {"style": "", "page": "", "left": "", "top": "", "width": "", "height": ""}, "type": "button", "mask": false, "input": true, "defaultValue": false, "validate": {"customMessage": "", "json": "", "required": false, "custom": "", "customPrivate": false, "strictDateValidation": false}, "state": "draft", "event": "", "url": "", "custom": "", "reorder": false, "encrypted": false, "hideOnChildrenHidden": false, "placeholder": "", "prefix": "", "suffix": "", "multiple": false, "protected": false, "unique": false, "persistent": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", "labelPosition": "top", "errorLabel": "", "hideLabel": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "widget": {"type": "input"}, "validateOn": "change", "allowCalculateOverride": false, "showCharCount": false, "showWordCount": false, "allowMultipleMasks": false, "dataGridLabel": true, "id": "elz9mhk"}], "width": 3, "offset": 0, "push": 0, "pull": 0, "type": "column", "input": false, "hideOnChildrenHidden": false, "key": "column", "tableView": true, "label": "Column"}, {"components": [{"type": "button", "label": "Submit", "key": "submit", "disableOnInvalid": true, "theme": "primary", "input": true, "tableView": true, "hideOnChildrenHidden": false, "placeholder": "", "prefix": "", "customClass": "", "suffix": "", "multiple": false, "defaultValue": null, "protected": false, "unique": false, "persistent": false, "hidden": false, "clearOnHide": true, "refreshOn": "", "redrawOn": "", "labelPosition": "top", "description": "", "errorLabel": "", "tooltip": "", "hideLabel": false, "tabindex": "", "disabled": false, "autofocus": false, "dbIndex": false, "customDefaultValue": "", "calculateValue": "", "widget": {"type": "input"}, "attributes": {}, "validateOn": "change", "validate": {"required": false, "custom": "", "customPrivate": false, "strictDateValidation": false}, "conditional": {"show": null, "when": null, "eq": ""}, "overlay": {"style": "", "left": "", "top": "", "width": "", "height": ""}, "allowCalculateOverride": false, "encrypted": false, "alwaysEnabled": false, "showCharCount": false, "showWordCount": false, "properties": {}, "allowMultipleMasks": false, "size": "md", "leftIcon": "", "rightIcon": "", "block": false, "action": "submit", "dataGridLabel": true, "id": "e8g564b"}], "width": 2, "offset": 0, "push": 0, "pull": 0, "type": "column", "input": false, "hideOnChildrenHidden": false, "key": "column", "tableView": true, "label": "Column"}], "mask": false, "type": "columns", "input": false, "key": "columns2", "reorder": false, "path": "columns2"}]}</field>
</record>
</data>
</odoo>