Improve "touch" logic for employees
also use app handler for default touch logic
This commit is contained in:
parent
3726a2685a
commit
862198cf82
2 changed files with 13 additions and 6 deletions
|
@ -304,6 +304,11 @@ class EmployeeView(MasterView):
|
|||
items.append(HTML.tag('li', c=six.text_type(department)))
|
||||
return HTML.tag('ul', c=items)
|
||||
|
||||
def touch_instance(self, employee):
|
||||
app = self.get_rattail_app()
|
||||
employment = app.get_employment_handler()
|
||||
employment.touch_employee(self.Session(), employee)
|
||||
|
||||
def get_version_child_classes(self):
|
||||
return [
|
||||
(model.Person, 'uuid', 'person_uuid'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue