diff --git a/InvenTree/build/forms.py b/InvenTree/build/forms.py index f60c257cef..5ef3579f89 100644 --- a/InvenTree/build/forms.py +++ b/InvenTree/build/forms.py @@ -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', diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index b2b8b24502..88d5cdd7ad 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -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' diff --git a/InvenTree/order/forms.py b/InvenTree/order/forms.py index ca61bd77be..1f412271e0 100644 --- a/InvenTree/order/forms.py +++ b/InvenTree/order/forms.py @@ -96,7 +96,7 @@ class EditPurchaseOrderForm(HelperForm): } self.field_placeholder = { - 'reference': _('Enter purchase order number'), + 'reference': _('Purchase Order reference'), } super().__init__(*args, **kwargs)