# HG changeset patch
# Parent 69d1f2d359eb8ef304a9d99f17790c78b35eda1a
Index: addons/openacademy/models.py
===================================================================
--- addons.orig/openacademy/models.py 2014-08-26 17:26:02.903783329 +0200
+++ addons/openacademy/models.py 2014-08-26 17:26:02.895783329 +0200
@@ -23,7 +23,8 @@
seats = fields.Integer(string="Number of seats")
instructor_id = fields.Many2one('res.partner', string="Instructor",
- domain=[('instructor', '=', True)])
+ domain=['|', ('instructor', '=', True),
+ ('category_id.name', 'ilike', "Teacher")])
course_id = fields.Many2one('openacademy.course',
ondelete='cascade', string="Course", required=True)
attendee_ids = fields.Many2many('res.partner', string="Attendees")
Index: addons/openacademy/views/partner.xml
===================================================================
--- addons.orig/openacademy/views/partner.xml 2014-08-26 17:26:02.903783329 +0200
+++ addons/openacademy/views/partner.xml 2014-08-26 17:26:02.895783329 +0200
@@ -28,5 +28,21 @@
+
+
+ Contact Tags
+ res.partner.category
+ tree,form
+
+
+
+
+ Teacher / Level 1
+
+
+ Teacher / Level 2
+