Clean up some inventory batch UI logic; prefer units by default
This commit is contained in:
parent
d61d9cc574
commit
c7496d7018
5 changed files with 22 additions and 17 deletions
|
@ -621,7 +621,7 @@ class BatchMasterView(MasterView):
|
|||
if self.request.has_perm('{}.create_row'.format(permission_prefix)):
|
||||
link = tags.link_to("Create a new {}".format(self.get_row_model_title()),
|
||||
self.get_action_url('create_row', batch))
|
||||
return HTML.tag('p', c=link)
|
||||
return HTML.tag('p', c=[link])
|
||||
|
||||
def make_batch_row_grid_tools(self, batch):
|
||||
if self.rows_bulk_deletable and not batch.executed and self.request.has_perm('{}.delete_rows'.format(self.get_permission_prefix())):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue