From 53917e9bf53032860fb4cb3f327ccb545f25ead9 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Apr 2019 12:32:35 -0500 Subject: [PATCH] Require invoice parser selection for new truck dump child from invoice --- tailbone/views/purchasing/receiving.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index c3789e95..9bc13962 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -592,6 +592,9 @@ class ReceivingBatchView(PurchasingBatchView): f.set_readonly('truck_dump_parent') f.set_renderer('truck_dump_parent', self.render_truck_dump_parent) + # invoice_parser_key + f.set_required('invoice_parser_key') + def render_truck_dump_parent(self, batch, field): truck_dump = self.get_instance() text = six.text_type(truck_dump)