Expose Product.average_weight field

This commit is contained in:
Lance Edgar 2020-09-02 13:38:18 -05:00
parent 72177e8ab5
commit 527bc04998
2 changed files with 2 additions and 0 deletions

View file

@ -99,6 +99,7 @@
${form.render_field_readonly('size')} ${form.render_field_readonly('size')}
${form.render_field_readonly('unit_size')} ${form.render_field_readonly('unit_size')}
${form.render_field_readonly('unit_of_measure')} ${form.render_field_readonly('unit_of_measure')}
${form.render_field_readonly('average_weight')}
${form.render_field_readonly('case_size')} ${form.render_field_readonly('case_size')}
% if instance.is_pack_item(): % if instance.is_pack_item():
${form.render_field_readonly('pack_size')} ${form.render_field_readonly('pack_size')}

View file

@ -124,6 +124,7 @@ class ProductsView(MasterView):
'default_pack', 'default_pack',
'case_size', 'case_size',
'weighed', 'weighed',
'average_weight',
'department', 'department',
'subdepartment', 'subdepartment',
'category', 'category',