Add basic "pending product" support for new custorder batch

This commit is contained in:
Lance Edgar 2021-12-22 12:06:00 -06:00
parent 408bffb775
commit c0db03bc28
13 changed files with 844 additions and 234 deletions

View file

@ -623,16 +623,6 @@ class BatchMasterView(MasterView):
def get_row_status_enum(self):
return self.model_row_class.STATUS
def render_upc(self, row, field):
upc = row.upc
if not upc:
return ""
text = upc.pretty()
if row.product_uuid:
url = self.request.route_url('products.view', uuid=row.product_uuid)
return tags.link_to(text, url)
return text
def render_upc_pretty(self, row, field):
upc = getattr(row, field)
if upc: