Require invoice parser selection for new truck dump child from invoice
This commit is contained in:
parent
503d508a86
commit
53917e9bf5
|
@ -592,6 +592,9 @@ class ReceivingBatchView(PurchasingBatchView):
|
||||||
f.set_readonly('truck_dump_parent')
|
f.set_readonly('truck_dump_parent')
|
||||||
f.set_renderer('truck_dump_parent', self.render_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):
|
def render_truck_dump_parent(self, batch, field):
|
||||||
truck_dump = self.get_instance()
|
truck_dump = self.get_instance()
|
||||||
text = six.text_type(truck_dump)
|
text = six.text_type(truck_dump)
|
||||||
|
|
Loading…
Reference in a new issue