mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add "reference" to build order forms
This commit is contained in:
parent
a8d47c54f9
commit
0b7cf9e7f3
@ -17,14 +17,27 @@ class EditBuildForm(HelperForm):
|
||||
""" Form for editing a Build object.
|
||||
"""
|
||||
|
||||
field_prefix = {
|
||||
'reference': 'BO',
|
||||
'link': 'fa-link',
|
||||
'batch': 'fa-layer-group',
|
||||
'location': 'fa-map-marker-alt',
|
||||
}
|
||||
|
||||
field_placeholder = {
|
||||
'reference': _('Build Order reference')
|
||||
}
|
||||
|
||||
|
||||
class Meta:
|
||||
model = Build
|
||||
fields = [
|
||||
'reference',
|
||||
'title',
|
||||
'part',
|
||||
'quantity',
|
||||
'parent',
|
||||
'sales_order',
|
||||
'quantity',
|
||||
'take_from',
|
||||
'batch',
|
||||
'link',
|
||||
|
@ -400,7 +400,7 @@ class BuildCreate(AjaxCreateView):
|
||||
model = Build
|
||||
context_object_name = 'build'
|
||||
form_class = forms.EditBuildForm
|
||||
ajax_form_title = _('Start new Build')
|
||||
ajax_form_title = _('New Build Order')
|
||||
ajax_template_name = 'modal_form.html'
|
||||
role_required = 'build.add'
|
||||
|
||||
|
@ -96,7 +96,7 @@ class EditPurchaseOrderForm(HelperForm):
|
||||
}
|
||||
|
||||
self.field_placeholder = {
|
||||
'reference': _('Enter purchase order number'),
|
||||
'reference': _('Purchase Order reference'),
|
||||
}
|
||||
|
||||
super().__init__(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user