Fix permission bug for mobile inventory batch
This commit is contained in:
parent
64afab821f
commit
16eeb501ca
|
@ -263,7 +263,7 @@ class InventoryBatchView(BatchMasterView):
|
||||||
'form': form,
|
'form': form,
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.request.has_perm('{}.edit'.format(self.get_row_permission_prefix())):
|
if self.request.has_perm('{}.edit_row'.format(self.get_permission_prefix())):
|
||||||
update_form = forms.SimpleForm(self.request, schema=InventoryForm)
|
update_form = forms.SimpleForm(self.request, schema=InventoryForm)
|
||||||
if update_form.validate():
|
if update_form.validate():
|
||||||
row = update_form.data['row']
|
row = update_form.data['row']
|
||||||
|
|
Loading…
Reference in a new issue