SHOW:
|
|
- or go back to the newest paste.
1 | # -*- coding: utf-8 -*- | |
2 | ||
3 | from trytond.model import ModelView, ModelSQL, fields, Workflow | |
4 | from trytond.pyson import Eval, Not, Equal | |
5 | ||
6 | __all__ = ['Appointment'] | |
7 | ||
8 | - | # --------------------------------------------------------------------------------- |
8 | + | |
9 | 'Add Calendar to the Appointment' | |
10 | __name__ = 'gnuhealth.appointment' | |
11 | ||
12 | physician = fields.Many2One('gnuhealth.physician', 'Physician', | |
13 | select=True, help='Physician\'s Name') | |
14 | - | doctor = fields.Many2One('gnuhealth.physician', 'Physician', |
14 | + | |
15 | service = fields.Many2One('product.product', 'Service', | |
16 | domain=[('id', 'in', Eval('physician.services'))], | |
17 | depends=['physician'], | |
18 | - | domain=[('id', 'in', Eval('doctor.services'))], |
18 | + | select=True,) |