Add basic edit support for Purchases

This commit is contained in:
Lance Edgar 2022-07-24 21:10:52 -05:00
parent 0dc344b821
commit 36d4f0a5f7
2 changed files with 43 additions and 9 deletions

View file

@ -539,7 +539,7 @@ class ReceivingBatchView(PurchasingBatchView):
f.set_widget('purchase_uuid', dfwidget.SelectWidget(values=values))
f.set_label('purchase_uuid', "Purchase Order")
f.set_required('purchase_uuid')
else:
elif self.creating or not batch.purchase:
f.remove_field('purchase')
# department