Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from trytond.model import ModelView, ModelSQL, fields, Workflow
- from trytond.pyson import Eval, Not, Equal
- __all__ = ['Appointment']
- class Appointment(Workflow, ModelSQL, ModelView):
- 'Add Calendar to the Appointment'
- __name__ = 'gnuhealth.appointment'
- physician = fields.Many2One('gnuhealth.physician', 'Physician',
- select=True, help='Physician\'s Name')
- service = fields.Many2One('product.product', 'Service',
- domain=[('id', 'in', Eval('physician.services'))],
- depends=['physician'],
- select=True,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement