Fix bug for purchase batch

This commit is contained in:
Lance Edgar 2018-05-03 18:20:38 -05:00
parent a5d1eece71
commit 4ee30feb0f

View file

@ -651,7 +651,7 @@ class PurchasingBatchView(BatchMasterView):
f.set_readonly('upc')
f.set_readonly('item_id')
f.set_readonly('product')
f.set_renderer('product', self.render_product)
f.set_renderer('product', self.render_row_product)
# TODO: what's up with this again?
# f.remove_fields('po_total',
@ -667,7 +667,6 @@ class PurchasingBatchView(BatchMasterView):
else:
f.remove_field('product')
def render_row_product(self, row, field):
product = row.product
if not product: