From 1367b10d1a380f42f4a676557a27c39ffbb82cc0 Mon Sep 17 00:00:00 2001 From: juanf <juanf@bsse-bs-dock-dhcp-312.ethz.ch> Date: Wed, 16 May 2018 14:40:12 +0200 Subject: [PATCH] SSDM-6061 : ELN Settings type don't auto generate codes --- .../core-plugins/eln-lims/1/as/elnTypes.py | 51 ++++++++++--------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/elnTypes.py b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/elnTypes.py index a0e3f4a03c8..b63ea5b092d 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/elnTypes.py +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/elnTypes.py @@ -91,7 +91,8 @@ def addTermWithLabelAndDescription(tr, vocabulary, termCode, termLabel, termDesc def createSampleTypeWithProperties(tr, sampleTypeDefinition): if isItemToInstall(tr, sampleTypeDefinition): createAnnotationScript = sampleTypeDefinition[1]; - sampleTypeDefinition = sampleTypeDefinition[2:]; + autoGenerateCodes = sampleTypeDefinition[2]; + sampleTypeDefinition = sampleTypeDefinition[3:]; sampleTypeCode = sampleTypeDefinition[0]; description = sampleTypeDefinition[1]; properties = sampleTypeDefinition[2]; @@ -101,7 +102,7 @@ def createSampleTypeWithProperties(tr, sampleTypeDefinition): newSampleType = tr.getOrCreateNewSampleType(sampleTypeCode); newSampleType.setDescription(description); newSampleType.setShowParents(True); - newSampleType.setAutoGeneratedCode(True); + newSampleType.setAutoGeneratedCode(autoGenerateCodes); newSampleType.setGeneratedCodePrefix(sampleTypeCode[:3]); addProperties(tr, newSampleType, properties); samplesCache[sampleTypeCode] = newSampleType; @@ -663,7 +664,7 @@ DEFAULT_EXPERIMENT = [MANDATORY_ITEM_VERSION, "DEFAULT_EXPERIMENT", "Default Exp ## ## Sample Types - Materials ## -ANTIBODY = [FIRST_TIME_VERSIONED, True, "ANTIBODY", "", [ +ANTIBODY = [FIRST_TIME_VERSIONED, True, True, "ANTIBODY", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "HOST", "General", "Host", DataType.CONTROLLEDVOCABULARY, "HOST", "Host used to produce the antibody", None, None], @@ -682,7 +683,7 @@ ANTIBODY = [FIRST_TIME_VERSIONED, True, "ANTIBODY", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_ANTIBODY", None] ]]; -CHEMICAL = [FIRST_TIME_VERSIONED, True, "CHEMICAL", "", [ +CHEMICAL = [FIRST_TIME_VERSIONED, True, True, "CHEMICAL", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "SUPPLIER", "Supplier and storage", "Supplier", DataType.VARCHAR, None, "Supplier of the product", None, None], @@ -692,7 +693,7 @@ CHEMICAL = [FIRST_TIME_VERSIONED, True, "CHEMICAL", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_CHEMICAL", None] ]]; -ENZYME = [FIRST_TIME_VERSIONED, True, "ENZYME", "", [ +ENZYME = [FIRST_TIME_VERSIONED, True, True, "ENZYME", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "SUPPLIER", "Supplier and storage", "Supplier", DataType.VARCHAR, None, "Supplier of the product", None, None], @@ -703,7 +704,7 @@ ENZYME = [FIRST_TIME_VERSIONED, True, "ENZYME", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_ENZYME", None] ]]; -MEDIA = [FIRST_TIME_VERSIONED, True, "MEDIA", "", [ +MEDIA = [FIRST_TIME_VERSIONED, True, True, "MEDIA", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "FOR_WHAT", "General", "For what", DataType.MULTILINE_VARCHAR, None, "For what kind of experimental application/readout this sample is used in the lab", None, None], @@ -717,7 +718,7 @@ MEDIA = [FIRST_TIME_VERSIONED, True, "MEDIA", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_MEDIA", None] ]]; -SOLUTION_BUFFER = [FIRST_TIME_VERSIONED, True, "SOLUTION_BUFFER", "", [ +SOLUTION_BUFFER = [FIRST_TIME_VERSIONED, True, True, "SOLUTION_BUFFER", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "FOR_WHAT", "General", "For what", DataType.MULTILINE_VARCHAR, None, "For what kind of experimental application/readout this sample is used in the lab", None, None], @@ -731,7 +732,7 @@ SOLUTION_BUFFER = [FIRST_TIME_VERSIONED, True, "SOLUTION_BUFFER", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_SOLUTION_BUFFER", None] ]]; -OLIGO = [FIRST_TIME_VERSIONED, True, "OLIGO", "", [ +OLIGO = [FIRST_TIME_VERSIONED, True, True, "OLIGO", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Target of the oligonucleotide", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "DIRECTION", "Details", "Direction", DataType.CONTROLLEDVOCABULARY, "DIRECTION", "Direction of the oligonucleotide", None, None], @@ -742,7 +743,7 @@ OLIGO = [FIRST_TIME_VERSIONED, True, "OLIGO", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_OLIGO", None] ]]; -RNA = [FIRST_TIME_VERSIONED, True, "RNA", "", [ +RNA = [FIRST_TIME_VERSIONED, True, True, "RNA", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name of RNA", DataType.VARCHAR, None, "Name of the RNA: species/number/strand", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "TARGET", "General", "Target of the RNA", DataType.VARCHAR, None, "Target of the oligonucleotide", None, None], @@ -759,7 +760,7 @@ RNA = [FIRST_TIME_VERSIONED, True, "RNA", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_RNA", None] ]]; -PLASMID = [FIRST_TIME_VERSIONED, True, "PLASMID", "", [ +PLASMID = [FIRST_TIME_VERSIONED, True, True, "PLASMID", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Plasmid", DataType.VARCHAR, None, "Plasmid name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "OWNER", "General", "Owner", DataType.CONTROLLEDVOCABULARY, "OWNER", "Who produced/owned the sample", None, None], @@ -777,7 +778,7 @@ PLASMID = [FIRST_TIME_VERSIONED, True, "PLASMID", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_PLASMID", None] ]]; -BACTERIA = [FIRST_TIME_VERSIONED, True, "BACTERIA", "", [ +BACTERIA = [FIRST_TIME_VERSIONED, True, True, "BACTERIA", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Bacteria strain name", DataType.VARCHAR, None, "Bacterial strain name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "OWNER", "General", "Owner", DataType.CONTROLLEDVOCABULARY, "OWNER", "Who produced/owned the sample", None, None], @@ -794,7 +795,7 @@ BACTERIA = [FIRST_TIME_VERSIONED, True, "BACTERIA", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_BACTERIA", None] ]]; -YEAST = [FIRST_TIME_VERSIONED, True, "YEAST", "", [ +YEAST = [FIRST_TIME_VERSIONED, True, True, "YEAST", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Yeast strain name", DataType.VARCHAR, None, "Yeast strain name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "OWNER", "General", "Owner", DataType.CONTROLLEDVOCABULARY, "OWNER", "Who produced/owned the sample", None, None], @@ -814,7 +815,7 @@ YEAST = [FIRST_TIME_VERSIONED, True, "YEAST", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_YEAST", None] ]]; -CELL_LINE = [FIRST_TIME_VERSIONED, True, "CELL_LINE", "", [ +CELL_LINE = [FIRST_TIME_VERSIONED, True, True, "CELL_LINE", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Cell line name", DataType.VARCHAR, None, "Name of the cell line", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "OWNER", "General", "Owner", DataType.CONTROLLEDVOCABULARY, "OWNER", "Who produced/owned the sample", None, None], @@ -840,7 +841,7 @@ CELL_LINE = [FIRST_TIME_VERSIONED, True, "CELL_LINE", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_CELL_LINE", None] ]]; -FLY = [FIRST_TIME_VERSIONED, True, "FLY", "", [ +FLY = [FIRST_TIME_VERSIONED, True, True, "FLY", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Fly strain name", DataType.VARCHAR, None, "Fly strain name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "OWNER", "General", "Owner", DataType.CONTROLLEDVOCABULARY, "OWNER", "Who produced/owned the sample", None, None], @@ -863,7 +864,7 @@ FLY = [FIRST_TIME_VERSIONED, True, "FLY", "", [ ## Sample Types - Non Materials ## -EXPERIMENTAL_STEP = [FIRST_TIME_VERSIONED, True, "EXPERIMENTAL_STEP", "", [ +EXPERIMENTAL_STEP = [FIRST_TIME_VERSIONED, True, True, "EXPERIMENTAL_STEP", "", [ [MANDATORY_ITEM_VERSION, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [MANDATORY_ITEM_VERSION, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [MANDATORY_ITEM_VERSION, "FINISHED_FLAG", "General", "Finished Flag", DataType.BOOLEAN, None, "Marks the experiment as finished", None, None], @@ -881,7 +882,7 @@ EXPERIMENTAL_STEP = [FIRST_TIME_VERSIONED, True, "EXPERIMENTAL_STEP", "", [ [MANDATORY_ITEM_VERSION, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "EXPERIMENTAL_STEP_ANNOTATIONS", None] ]]; -GENERAL_PROTOCOL = [FIRST_TIME_VERSIONED, True, "GENERAL_PROTOCOL", "", [ +GENERAL_PROTOCOL = [FIRST_TIME_VERSIONED, True, True, "GENERAL_PROTOCOL", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "FOR_WHAT", "General", "For what", DataType.MULTILINE_VARCHAR, None, "For what kind of experimental application/readout this sample is used in the lab", None, None], @@ -897,7 +898,7 @@ GENERAL_PROTOCOL = [FIRST_TIME_VERSIONED, True, "GENERAL_PROTOCOL", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_GENERAL_PROTOCOL", None] ]]; -PCR_PROTOCOL = [FIRST_TIME_VERSIONED, True, "PCR_PROTOCOL", "", [ +PCR_PROTOCOL = [FIRST_TIME_VERSIONED, True, True, "PCR_PROTOCOL", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "FOR_WHAT", "General", "For what", DataType.MULTILINE_VARCHAR, None, "For what kind of experimental application/readout this sample is used in the lab", None, None], @@ -912,7 +913,7 @@ PCR_PROTOCOL = [FIRST_TIME_VERSIONED, True, "PCR_PROTOCOL", "", [ [FIRST_TIME_VERSIONED, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_PCR_PROTOCOL", None] ]]; -WESTERN_BLOTTING_PROTOCOL = [FIRST_TIME_VERSIONED, True, "WESTERN_BLOTTING_PROTOCOL", "", [ +WESTERN_BLOTTING_PROTOCOL = [FIRST_TIME_VERSIONED, True, True, "WESTERN_BLOTTING_PROTOCOL", "", [ [FIRST_TIME_VERSIONED, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [FIRST_TIME_VERSIONED, "SHOW_IN_PROJECT_OVERVIEW", "General", "Show in project overview", DataType.BOOLEAN, None, "Show in project overview", None, None], [FIRST_TIME_VERSIONED, "FOR_WHAT", "General", "For what", DataType.MULTILINE_VARCHAR, None, "For what kind of experimental application/readout this sample is used in the lab", None, None], @@ -927,14 +928,14 @@ WESTERN_BLOTTING_PROTOCOL = [FIRST_TIME_VERSIONED, True, "WESTERN_BLOTTING_PROTO ## ## Types - Configuration ## -GENERAL_ELN_SETTINGS = [MANDATORY_ITEM_VERSION, False, "GENERAL_ELN_SETTINGS", "Used to store the settings of the ELN application", [ +GENERAL_ELN_SETTINGS = [MANDATORY_ITEM_VERSION, False, False, "GENERAL_ELN_SETTINGS", "Used to store the settings of the ELN application", [ [MANDATORY_ITEM_VERSION, "ELN_SETTINGS", "Settings", "ELN Settings", DataType.VARCHAR, None, "ELN Settings", None, None, False, False] ]]; ## ## Types - Storage ## -STORAGE_RACK = [MANDATORY_ITEM_VERSION, False, "STORAGE", "", [ +STORAGE_RACK = [MANDATORY_ITEM_VERSION, False, True, "STORAGE", "", [ [MANDATORY_ITEM_VERSION, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [MANDATORY_ITEM_VERSION, "ROW_NUM", "General", "Number of Rows", DataType.INTEGER, None, "Number of Rows", None, None], [MANDATORY_ITEM_VERSION, "COLUMN_NUM", "General", "Number of Columns", DataType.INTEGER, None, "Number of Columns", None, None], @@ -946,7 +947,7 @@ STORAGE_RACK = [MANDATORY_ITEM_VERSION, False, "STORAGE", "", [ [MANDATORY_ITEM_VERSION, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", "ANNOTATIONS_STORAGE_POSITION", None] ]]; -STORAGE_POSITION = [MANDATORY_ITEM_VERSION, False, "STORAGE_POSITION", "", [ +STORAGE_POSITION = [MANDATORY_ITEM_VERSION, False, True, "STORAGE_POSITION", "", [ [MANDATORY_ITEM_VERSION, "STORAGE_CODE", "Physical Storage", "Storage Code", DataType.VARCHAR, None, "Storage Code", None, None, False, False], [MANDATORY_ITEM_VERSION, "STORAGE_RACK_ROW", "Physical Storage", "Storage Rack Row", DataType.INTEGER, None, "Storage Rack Row", None, None, False, False], [MANDATORY_ITEM_VERSION, "STORAGE_RACK_COLUMN", "Physical Storage", "Storage Rack Column", DataType.INTEGER, None, "Storage Rack Column", None, None, False, False], @@ -995,7 +996,7 @@ ORDER_STATUS = [ MANDATORY_ITEM_VERSION, "ORDER_STATUS", "Order Status", ["PAID", "paid", None] ]]; -SUPPLIER = [MANDATORY_ITEM_VERSION, False, "SUPPLIER", "", [ +SUPPLIER = [MANDATORY_ITEM_VERSION, False, True, "SUPPLIER", "", [ [MANDATORY_ITEM_VERSION, "NAME", "General", "Company Name", DataType.VARCHAR, None, "Name", None, None, True], [MANDATORY_ITEM_VERSION, "COMPANY_ADDRESS_LINE_1", "General", "Company address", DataType.VARCHAR, None, "Company address", None, None], [MANDATORY_ITEM_VERSION, "COMPANY_ADDRESS_LINE_2", "General", "Company address Line 2", DataType.VARCHAR, None, "Company address", None, None], @@ -1012,7 +1013,7 @@ SUPPLIER = [MANDATORY_ITEM_VERSION, False, "SUPPLIER", "", [ [MANDATORY_ITEM_VERSION, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", None, None] ]]; -PRODUCT = [MANDATORY_ITEM_VERSION, False, "PRODUCT", "", [ +PRODUCT = [MANDATORY_ITEM_VERSION, False, True, "PRODUCT", "", [ [MANDATORY_ITEM_VERSION, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None, True], [MANDATORY_ITEM_VERSION, "PRODUCT_SECONDARY_NAMES", "General", "Product Secondary Names", DataType.VARCHAR, None, "Product Secondary Names", None, None], [MANDATORY_ITEM_VERSION, "DESCRIPTION", "General", "Description", DataType.MULTILINE_VARCHAR, None, "Description", None, None], @@ -1026,7 +1027,7 @@ PRODUCT = [MANDATORY_ITEM_VERSION, False, "PRODUCT", "", [ [MANDATORY_ITEM_VERSION, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", None, None] ]]; -REQUEST = [MANDATORY_ITEM_VERSION, False, "REQUEST", "", [ +REQUEST = [MANDATORY_ITEM_VERSION, False, True, "REQUEST", "", [ [MANDATORY_ITEM_VERSION, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [MANDATORY_ITEM_VERSION, "ORDER_STATUS", "General", "Order Status", DataType.CONTROLLEDVOCABULARY, "ORDER_STATUS", "Order Status", None, None, True], [MANDATORY_ITEM_VERSION, "ORDER_NUMBER", "General", "Order Number", DataType.VARCHAR, None, "Order number", None, "REQUESTS_CHILDREN_CODE_SAMPLE"], @@ -1036,7 +1037,7 @@ REQUEST = [MANDATORY_ITEM_VERSION, False, "REQUEST", "", [ [MANDATORY_ITEM_VERSION, "ANNOTATIONS_STATE", "Comments", "Annotations State", DataType.XML, None, "Annotations State", None, None] ]]; -ORDER = [MANDATORY_ITEM_VERSION, False, "ORDER", "", [ +ORDER = [MANDATORY_ITEM_VERSION, False, True, "ORDER", "", [ [MANDATORY_ITEM_VERSION, "NAME", "General", "Name", DataType.VARCHAR, None, "Name", None, None], [MANDATORY_ITEM_VERSION, "SHIP_TO", "General", "Ship To", DataType.VARCHAR, None, "Ship To", None, None], [MANDATORY_ITEM_VERSION, "BILL_TO", "General", "Bill To", DataType.VARCHAR, None, "Bill To", None, None], -- GitLab