Пример #1
0
 def __init__(self, *args, **kwargs):
     super(ContractModelView, self).__init__(*args, **kwargs)
     self.defaults_actions.update(show_buttons=actions.Actions(actions.edit))
     cr_actions = deepcopy(contract_tabs)
     wf = workflow.change_workflow(self.context)
     if wf:
         cr_actions.append(wf)
     self.defaults_actions.update(show_tabs = cr_actions)
Пример #2
0
 def __init__(self, *args, **kwargs):
     super(CustomerRequestModelView, self).__init__(*args, **kwargs)
     self.defaults_actions.update(show_buttons=actions.Actions(actions.edit))
     if self.context.get_instance().filler:
         cr_actions = deepcopy(customer_request_tabs_without_estimations)
     else:
         cr_actions = deepcopy(customer_request_tabs)
     wf = workflow.change_workflow(self.context)
     if wf:
         cr_actions.append(wf)
     self.defaults_actions.update(show_tabs = cr_actions)
     self.defaults_actions.update(estimations_tabs = cr_actions)
     self.defaults_actions['show_buttons'].append(add_ticket)
     self.defaults_actions['show_buttons'].append(add_fast_ticketing)
Пример #3
0
 def __init__(self, *args, **kwargs):
     super(TimeEntryModelView, self).__init__(*args, **kwargs)
     self.defaults_actions.update(show_tabs=deepcopy(timeentry_tabs))
     wf = workflow.change_workflow(self.context)
     if wf:
         self.defaults_actions["show_tabs"].append(wf)