Advertisement
Guest User

appointment.py

a guest
Sep 10th, 2013
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. class Appointment(Workflow, ModelSQL, ModelView):
  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.  
  15.     service = fields.Many2One('product.product', 'Service',
  16.         domain=[('id', 'in', Eval('physician.services'))],
  17.         depends=['physician'],
  18.         select=True,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement