Misc. improvements for desktop receiving views
- don't expose "cases" if config says not to - don't expose "expired" if config says not to - use `numeric-input` for quantity fields - add `product_key_field` to global-ish template context
This commit is contained in:
parent
92a52133de
commit
17810d9cae
7 changed files with 125 additions and 84 deletions
|
@ -1180,9 +1180,6 @@ class ProductView(MasterView):
|
|||
product = kwargs['instance']
|
||||
use_buefy = self.get_use_buefy()
|
||||
|
||||
key = self.rattail_config.product_key()
|
||||
kwargs['product_key_field'] = self.product_key_fields.get(key, key)
|
||||
|
||||
kwargs['image_url'] = self.products_handler.get_image_url(product)
|
||||
|
||||
# add price history, if user has access
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue