Regular Table
{
"title": "EDB Risk Calculation",
"width": 12,
"full_row": True,
"reload_div": True,
"url_name": "frame_regular_table",
"url_action_name": "edb_test",
"content": {
"view": custom_views.RegularTableEdbCalculation,
"view_params": {
"limit": 1000, # TODO remove
"model": custom_models.EdbCalculation,
"order_by": "supplier__name",
"row_style_function": custom_functions.row_style_function_monitoring_status,
"field_definitions": {
# Product related
"supplier__link": {
"label": "Factory/Facility Name",
"format": "text_link",
},
"supplier__location__country": {
"label": "Country",
},
"supplier__facility_state": {
"label": "State/Province",
},
"raw_material": {
"label": "Raw Material",
},
"social_and_labor": {
"label": "Social & Labor Score",
"format": "intcomma_rounding2",
},
"health_and_safety": {
"label": "Health & Safety Score",
"format": "intcomma_rounding2",
},
"environment": {
"label": "Environmental Score",
"format": "intcomma_rounding2",
},
"is_screened": {
"label": "Is Screened",
"format": "boolean",
},
"flag_score": {
"label": "Supplier Screening Flag Score = 10 if no issue = 0 otherwise",
"format": "intcomma_rounding2",
},
"supplier__issue_list_elevate": {
"label": "Issues Flagged by Elevate"
},
"supplier__issue_list_kharon": {
"label": "Issues Flagged by Kharon",
},
"supplier__issue_list_dowjones": {
"label": "Issues Flagged by Dow Jones",
},
"total_risk_exposure_score": {
"label": "Total Safety Score",
"format": "intcomma_rounding2",
},
},
},
},
},
Last updated