diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 0fa15bae..b26a8afc 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -80,6 +80,8 @@ ${render_field_readonly(form.fieldset.size)} ${render_field_readonly(form.fieldset.unit_size)} ${render_field_readonly(form.fieldset.unit_of_measure)} + ${render_field_readonly(form.fieldset.unit)} + ${render_field_readonly(form.fieldset.pack_size)} ${render_field_readonly(form.fieldset.case_size)} ${self.extra_main_fields(form)} diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 7dfeafba..432e8920 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -284,6 +284,8 @@ class ProductsView(MasterView): fs.unit_size.set(renderer=forms.renderers.QuantityFieldRenderer) fs.unit_of_measure.set(label="Unit of Measure", renderer=forms.renderers.EnumFieldRenderer(self.enum.UNIT_OF_MEASURE)) + fs.unit.set(renderer=forms.renderers.ProductFieldRenderer, label="Unit Item") + fs.pack_size.set(renderer=forms.renderers.QuantityFieldRenderer) fs.regular_price.set(renderer=forms.renderers.PriceFieldRenderer, readonly=True) fs.current_price.set(renderer=forms.renderers.PriceFieldRenderer, readonly=True) fs.last_sold.set(readonly=True) @@ -299,8 +301,10 @@ class ProductsView(MasterView): fs.unit_size, fs.unit_of_measure, fs.size, - fs.weighed, + fs.unit, + fs.pack_size, fs.case_size, + fs.weighed, fs.department, fs.subdepartment, fs.category,