2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Fix issues for AjaxUdpateView

- Works properly now!
- Can edit BOM item inline
- Can add BOM item inline too
This commit is contained in:
Oliver
2018-04-26 09:26:43 +10:00
parent 55e7f365df
commit e395d89a7f
7 changed files with 50 additions and 23 deletions

View File

@@ -63,10 +63,11 @@ class EditBomItemForm(forms.ModelForm):
super(EditBomItemForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-edit-part-form'
#self.helper.form_id = 'id-edit-part-form'
self.helper.form_method = 'post'
self.helper.add_input(Submit('submit', 'Submit'))
self.helper.form_tag = False
#self.helper.add_input(Submit('submit', 'Submit'))
class Meta:
model = BomItem