Add unit item and pack size fields to product view
This commit is contained in:
parent
4a2f329613
commit
77a252399b
|
@ -80,6 +80,8 @@
|
||||||
${render_field_readonly(form.fieldset.size)}
|
${render_field_readonly(form.fieldset.size)}
|
||||||
${render_field_readonly(form.fieldset.unit_size)}
|
${render_field_readonly(form.fieldset.unit_size)}
|
||||||
${render_field_readonly(form.fieldset.unit_of_measure)}
|
${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)}
|
${render_field_readonly(form.fieldset.case_size)}
|
||||||
${self.extra_main_fields(form)}
|
${self.extra_main_fields(form)}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
|
@ -284,6 +284,8 @@ class ProductsView(MasterView):
|
||||||
fs.unit_size.set(renderer=forms.renderers.QuantityFieldRenderer)
|
fs.unit_size.set(renderer=forms.renderers.QuantityFieldRenderer)
|
||||||
fs.unit_of_measure.set(label="Unit of Measure",
|
fs.unit_of_measure.set(label="Unit of Measure",
|
||||||
renderer=forms.renderers.EnumFieldRenderer(self.enum.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.regular_price.set(renderer=forms.renderers.PriceFieldRenderer, readonly=True)
|
||||||
fs.current_price.set(renderer=forms.renderers.PriceFieldRenderer, readonly=True)
|
fs.current_price.set(renderer=forms.renderers.PriceFieldRenderer, readonly=True)
|
||||||
fs.last_sold.set(readonly=True)
|
fs.last_sold.set(readonly=True)
|
||||||
|
@ -299,8 +301,10 @@ class ProductsView(MasterView):
|
||||||
fs.unit_size,
|
fs.unit_size,
|
||||||
fs.unit_of_measure,
|
fs.unit_of_measure,
|
||||||
fs.size,
|
fs.size,
|
||||||
fs.weighed,
|
fs.unit,
|
||||||
|
fs.pack_size,
|
||||||
fs.case_size,
|
fs.case_size,
|
||||||
|
fs.weighed,
|
||||||
fs.department,
|
fs.department,
|
||||||
fs.subdepartment,
|
fs.subdepartment,
|
||||||
fs.category,
|
fs.category,
|
||||||
|
|
Loading…
Reference in a new issue