Hello Everyone,
Is it possible to display multiple status in List View? I want to display the status from quality check to the delivery orders. For example, there are 2 products in one PO and each products undergo quality check before delivering. If one product is Pass it displays Passed in the List View similarly if the product is Failed. I can only display one status label using related field. How can I do it in computed field, I do mine but it runs in error:
Dependencies:
check_ids, check_ids.quality_state
Code:
for record in self.check_ids:
if record.quality_state == "Failed":
record['x_studio_quality_checks'] = "Passed"
elif record.quality_state == "Passed":
record['x_studio_quality_checks'] = "Passed"
else:
record['x_studio_quality_checks'] = "To Do"
Error:
KeyError: 'x_studio_quality_checks'
ValueError: : "x_studio_quality_checks" while evaluating
