web/views/actions.py
changeset 5241 1460d69672bc
parent 5001 4f6a1295a8d2
child 5423 e15abfdcce38
equal deleted inserted replaced
5239:471554b842d2 5241:1460d69672bc
   237     """fill 'addrelated' sub-menu of the actions box"""
   237     """fill 'addrelated' sub-menu of the actions box"""
   238     __regid__ = 'addrelated'
   238     __regid__ = 'addrelated'
   239     __select__ = action.Action.__select__ & one_line_rset() & non_final_entity()
   239     __select__ = action.Action.__select__ & one_line_rset() & non_final_entity()
   240 
   240 
   241     submenu = _('addrelated')
   241     submenu = _('addrelated')
   242     order = 20
   242     order = 17
   243 
   243 
   244     def fill_menu(self, box, menu):
   244     def fill_menu(self, box, menu):
   245         # when there is only one item in the sub-menu, replace the sub-menu by
   245         # when there is only one item in the sub-menu, replace the sub-menu by
   246         # item's title prefixed by 'add'
   246         # item's title prefixed by 'add'
   247         menu.label_prefix = self._cw._('add')
   247         menu.label_prefix = self._cw._('add')