{
"actions": {
{
"POST": {
"id": {
"type": "integer",
"required": false,
"read_only": false,
"label": "ID"
},
"revision_display": {
"type": "field",
"required": false,
"read_only": false,
"label": "Revision display"
},
"revision": {
"type": "integer",
"required": false,
"read_only": true,
"label": "Revision"
},
"sub_revision": {
"type": "integer",
"required": false,
"read_only": true,
"label": "Sub Revision"
},
"user_editable": {
"type": "field",
"required": false,
"read_only": true,
"label": "User Editable"
},
"revision_editable": {
"type": "field",
"required": false,
"read_only": true,
"label": "Revision Editable"
},
"status": {
"type": "choice",
"required": false,
"read_only": true,
"label": "Status"
},
"status_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Status name"
},
"approval_status": {
"type": "choice",
"required": false,
"read_only": true,
"label": "Approval Status"
},
"approval_status_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Approval Status name"
},
"approval_flow": {
// NOTE: This field might refer to "approval_flow_instruction"
"type": "field",
"required": false,
"read_only": true,
"label": "Approval flow instruction",
"child": {
"type": "nested object",
"required": false,
"read_only": true,
"children": {
"approver": {
"type": "field",
"required": true,
"read_only": false,
"label": "Approver",
"choices": [
{
"display_name": "AAAB - ปวริศ แสงปรีชารัตน์ 2",
"value": "2"
},
{
"display_name": "AAAA - ปวริศ แสงปรีชารัตน์ 1",
"value": "3"
},
{
"display_name": "admin (Superuser)",
"value": "1"
}
]
},
"role": {
"type": "choice",
"required": true,
"read_only": false,
"label": "Role",
"choices": [
{
"display_name": "Requester",
"value": 1
},
{
"display_name": "Owner",
"value": 2
},
{
"display_name": "Approver",
"value": 3
}
]
},
"approved_date": {
"type": "datetime",
"required": false,
"read_only": false,
"label": "Approved Date"
}
}
}
},
"preparer": {
"type": "field",
"required": true,
"read_only": false,
"label": "Preparer",
"choices": [
{
"display_name": "AAAB - ปวริศ แสงปรีชารัตน์ 2",
"value": "2"
},
{
"display_name": "AAAA - ปวริศ แสงปรีชารัตน์ 1",
"value": "3"
},
{
"display_name": "admin (Superuser)",
"value": "1"
}
]
},
"preparer_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Preparer name"
},
"owner": {
"type": "field",
"required": true,
"read_only": false,
"label": "Owner",
"choices": [
{
"display_name": "AAAB - ปวริศ แสงปรีชารัตน์ 2",
"value": "2"
},
{
"display_name": "AAAA - ปวริศ แสงปรีชารัตน์ 1",
"value": "3"
},
{
"display_name": "admin (Superuser)",
"value": "1"
}
]
},
"owner_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Owner name"
},
"assistant": {
"type": "field",
"required": true,
"read_only": false,
"label": "Assistant",
"choices": [
{
"display_name": "AAAB - ปวริศ แสงปรีชารัตน์ 2",
"value": "2"
},
{
"display_name": "AAAA - ปวริศ แสงปรีชารัตน์ 1",
"value": "3"
},
{
"display_name": "admin (Superuser)",
"value": "1"
}
]
},
"assistant_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Assistant name"
},
"numbering_code": {
"type": "field",
"required": true,
"read_only": false,
"label": "Numbering code",
"choices": [
{
"display_name": "A",
"value": "2"
}
]
},
"no": {
"type": "string",
"required": false,
"read_only": false,
"label": "No.",
"max_length": 50
},
"company": {
"type": "field",
"required": true,
"read_only": false,
"label": "Company",
"choices": [
{
"display_name": "COM01 - บริษัท 1",
"value": "1"
},
{
"display_name": "COM02 - บริษัท 2",
"value": "2"
}
]
},
"company_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Company name"
},
"date": {
"type": "date",
"required": true,
"read_only": false,
"label": "Date"
},
"date_long": {
"type": "string",
"required": true,
"read_only": true,
"label": "Full Date"
},
"sensitivity_level": {
"type": "choice",
"required": true,
"read_only": false,
"label": "Sensitivity Level",
"choices": [
{
"display_name": "Official",
"value": 1
},
{
"display_name": "Restricted",
"value": 2
},
{
"display_name": "Confidential",
"value": 3
},
{
"display_name": "Secret",
"value": 4
},
{
"display_name": "Top Secret",
"value": 5
}
]
},
"sensitivity_level_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Sensitivity Level Name"
},
"external_ref_no": {
"type": "string",
"required": false,
"read_only": false,
"label": "External Ref No.",
"max_length": 20
},
"warehouse": {
"type": "choice",
"required": true,
"read_only": false,
"label": "Warehouse",
"choices": [
{
"display_name": "Main warehouse A",
"value": 1
},
{
"display_name": "Main warehouse B",
"value": 2
},
{
"display_name": "Northern warehouse 1",
"value": 3
},
{
"display_name": "Eastern warehouse 1",
"value": 4
},
{
"display_name": "Southern warehouse 1",
"value": 5
}
]
},
"warehouse_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Warehouse Name"
},
"reference_document_type": {
"type": "field",
"required": true,
"read_only": false,
"label": "Ref Document Type",
"choices": [
{
"display_name": "user",
"value": "1"
},
{
"display_name": "log entry",
"value": "2"
},
{
"display_name": "permission",
"value": "3"
},
{
"display_name": "group",
"value": "4"
},
{
"display_name": "content type",
"value": "5"
},
{
"display_name": "session",
"value": "6"
},
{
"display_name": "cors model",
"value": "7"
},
{
"display_name": "company",
"value": "8"
},
{
"display_name": "employee",
"value": "9"
},
{
"display_name": "access permission",
"value": "10"
},
{
"display_name": "business unit",
"value": "11"
},
{
"display_name": "payment term",
"value": "12"
},
{
"display_name": "warehouse",
"value": "13"
},
{
"display_name": "storage bin",
"value": "14"
},
{
"display_name": "loading dock",
"value": "15"
},
{
"display_name": "chart of account",
"value": "16"
},
{
"display_name": "pricing type",
"value": "17"
},
{
"display_name": "master contract",
"value": "18"
},
{
"display_name": "partner",
"value": "19"
},
{
"display_name": "shipping address",
"value": "20"
},
{
"display_name": "contact person",
"value": "21"
},
{
"display_name": "contract",
"value": "22"
},
{
"display_name": "product group",
"value": "23"
},
{
"display_name": "unit of measurement",
"value": "24"
},
{
"display_name": "product",
"value": "25"
},
{
"display_name": "selling price",
"value": "26"
},
{
"display_name": "purchasing price",
"value": "27"
},
{
"display_name": "selling unit price",
"value": "28"
},
{
"display_name": "purchasing unit price",
"value": "29"
},
{
"display_name": "document numbering",
"value": "30"
},
{
"display_name": "sale order",
"value": "31"
},
{
"display_name": "sale order log",
"value": "32"
},
{
"display_name": "product quantity",
"value": "33"
},
{
"display_name": "cash account",
"value": "34"
},
{
"display_name": "document",
"value": "35"
},
{
"display_name": "document log",
"value": "36"
},
{
"display_name": "document payment amount",
"value": "37"
},
{
"display_name": "document product quantity",
"value": "38"
}
]
},
"reference_document_type_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Ref Document Type Name"
},
"reference_document_no": {
"type": "integer",
"required": true,
"read_only": false,
"label": "Ref Document No.",
"min_value": 0,
"max_value": 2147483647
},
"items": {
"type": "field",
"required": false,
"read_only": false,
"label": "Document product quantities",
"child": {
"type": "nested object",
"required": false,
"read_only": false,
"children": {
"id": {
"type": "integer",
"required": false,
"read_only": false,
"label": "ID"
},
"product": {
"type": "field",
"required": true,
"read_only": false,
"label": "Product",
"choices": [
{
"display_name": "1 - Product 1",
"value": "1"
},
{
"display_name": "2 - Product 2",
"value": "2"
}
]
},
"product_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Product Name"
}
"product_uom": {
"type": "field",
"required": false,
"read_only": true,
"label": "Product UOM"
},
"quantity": {
"type": "integer",
"required": true,
"read_only": false,
"label": "Quantity",
"min_value": -2147483648,
"max_value": 2147483647
},
"storage_bin": {
"type": "field",
"required": false,
"read_only": false,
"label": "Storage Bin",
"choices": [
{
"display_name": "SB1 - Storage bin 01",
"value": "1"
},
{
"display_name": "SB2 - Storage bin 02",
"value": "2"
},
{
"display_name": "SB01 - Storage bin 01",
"value": "3"
}
]
},
"storage_bin_name": {
"type": "field",
"required": false,
"read_only": true,
"label": "Storage Bin Name"
}
}
}
},
"submit": {
"type": "boolean",
"required": false,
"read_only": false,
"label": "Submit",
},
}
}
}
}
The Sample API Result
Module name: Product Issuing
Sample view: OPTIONS
Module name: Product Issuing
Sample view: OPTIONS
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.