From 527bc04998e6a387bd75f472dd868de93de903ac Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 2 Sep 2020 13:38:18 -0500 Subject: [PATCH] Expose `Product.average_weight` field --- tailbone/templates/products/view.mako | 1 + tailbone/views/products.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 23b6d2ca..b3fddacc 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -99,6 +99,7 @@ ${form.render_field_readonly('size')} ${form.render_field_readonly('unit_size')} ${form.render_field_readonly('unit_of_measure')} + ${form.render_field_readonly('average_weight')} ${form.render_field_readonly('case_size')} % if instance.is_pack_item(): ${form.render_field_readonly('pack_size')} diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 8b2b8575..1cac0c19 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -124,6 +124,7 @@ class ProductsView(MasterView): 'default_pack', 'case_size', 'weighed', + 'average_weight', 'department', 'subdepartment', 'category',