Require invoice parser selection for new truck dump child from invoice

This commit is contained in:
Lance Edgar 2019-04-01 12:32:35 -05:00
parent 503d508a86
commit 53917e9bf5

View file

@ -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)