web/views/actions.py
changeset 8666 1dd655788ece
parent 8665 e65af61bde7d
child 9198 c32a21bf88bb
equal deleted inserted replaced
8665:e65af61bde7d 8666:1dd655788ece
   289 
   289 
   290         If you don't want any auto-generated actions, you should overrides this
   290         If you don't want any auto-generated actions, you should overrides this
   291         method to return an empty list. If you only want some, you can configure
   291         method to return an empty list. If you only want some, you can configure
   292         them by using uicfg.actionbox_appearsin_addmenu
   292         them by using uicfg.actionbox_appearsin_addmenu
   293         """
   293         """
   294         appearsin_addmenu = uicfg.actionbox_appearsin_addmenu
   294         appearsin_addmenu = self._cw.vreg['uicfg'].select(
       
   295             'actionbox_appearsin_addmenu', self._cw, entity=entity)
   295         req = self._cw
   296         req = self._cw
   296         eschema = entity.e_schema
   297         eschema = entity.e_schema
   297         for role, rschemas in (('subject', eschema.subject_relations()),
   298         for role, rschemas in (('subject', eschema.subject_relations()),
   298                                ('object', eschema.object_relations())):
   299                                ('object', eschema.object_relations())):
   299             for rschema in rschemas:
   300             for rschema in rschemas: