Display "suggested price" when viewing product details
very basic support here...
This commit is contained in:
parent
bdbb8e2a7d
commit
20e654ddea
|
@ -124,6 +124,7 @@
|
|||
${form.render_field_readonly('regular_price')}
|
||||
${form.render_field_readonly('current_price')}
|
||||
${form.render_field_readonly('current_price_ends')}
|
||||
${form.render_field_readonly('suggested_price')}
|
||||
${form.render_field_readonly('deposit_link')}
|
||||
${form.render_field_readonly('tax')}
|
||||
</%def>
|
||||
|
|
|
@ -115,6 +115,7 @@ class ProductsView(MasterView):
|
|||
'category',
|
||||
'family',
|
||||
'report_code',
|
||||
'suggested_price',
|
||||
'regular_price',
|
||||
'current_price',
|
||||
'current_price_ends',
|
||||
|
@ -348,6 +349,13 @@ class ProductsView(MasterView):
|
|||
else:
|
||||
f.remove_field('unit')
|
||||
|
||||
# suggested_price
|
||||
if self.creating:
|
||||
f.remove_field('suggested_price')
|
||||
else:
|
||||
f.set_readonly('suggested_price')
|
||||
f.set_renderer('suggested_price', self.render_price)
|
||||
|
||||
# regular_price
|
||||
if self.creating:
|
||||
f.remove_field('regular_price')
|
||||
|
|
Loading…
Reference in a new issue