Allow products view to set some labels in costs grid

This commit is contained in:
Lance Edgar 2018-06-07 16:03:17 -05:00
parent bac82f47d8
commit e608c0b428
2 changed files with 8 additions and 4 deletions

View file

@ -619,6 +619,10 @@ class ProductsView(MasterView):
if product.upc:
kwargs['image_url'] = pod.get_image_url(self.rattail_config, product.upc)
kwargs['image_path'] = pod.get_image_path(self.rattail_config, product.upc)
kwargs['costs_label_preferred'] = "Pref."
kwargs['costs_label_vendor'] = "Vendor"
kwargs['costs_label_code'] = "Order Code"
kwargs['costs_label_case_size'] = "Case Size"
return kwargs
def edit(self):