Example #1
0
    def update_items(self):
        """Update the items on the list

        Useful when a history is created when using this slave and
        we want it to show here at the same time.
        """
        self.details_list.add_list(
            WorkOrderHistoryView.find_by_work_order(self.store, self.model))
Example #2
0
    def update_items(self):
        """Update the items on the list

        Useful when a history is created when using this slave and
        we want it to show here at the same time.
        """
        self.details_list.add_list(
            WorkOrderHistoryView.find_by_work_order(self.store, self.model))
Example #3
0
 def test_find_by_work_order(self):
     work_order = self.create_workorder()
     user = self.create_user()
     WorkOrderHistory(store=self.store,
                      work_order=work_order,
                      user=user,
                      what=u"what!")
     view = WorkOrderHistoryView.find_by_work_order(self.store, work_order).one()
     self.assertEquals(view.user_name, u'individual')
Example #4
0
 def test_find_by_work_order(self):
     work_order = self.create_workorder()
     user = self.create_user()
     WorkOrderHistory(store=self.store,
                      work_order=work_order,
                      user=user,
                      what=u"what!")
     view = WorkOrderHistoryView.find_by_work_order(self.store, work_order).one()
     self.assertEquals(view.user_name, u'individual')