Set quantity type when viewing vendor lead times, order intervals
This commit is contained in:
parent
1ce60821bd
commit
83c354b983
3
tailbone/views/vendors/core.py
vendored
3
tailbone/views/vendors/core.py
vendored
|
@ -89,6 +89,9 @@ class VendorView(MasterView):
|
|||
super(VendorView, self).configure_form(f)
|
||||
vendor = f.model_instance
|
||||
|
||||
f.set_type('lead_time_days', 'quantity')
|
||||
f.set_type('order_interval_days', 'quantity')
|
||||
|
||||
# default_phone
|
||||
f.set_renderer('default_phone', self.render_default_phone)
|
||||
if not self.creating and vendor.phones:
|
||||
|
|
Loading…
Reference in a new issue