clinic/netforce_clinic/models/product.py

12 lines
365 B
Python
Raw Normal View History

2015-02-04 05:13:10 +00:00
from netforce.model import Model, fields
class Product(Model):
_inherit="product"
_fields={
'patient_types': fields.Many2Many("clinic.patient.type","Patient Types"),
2015-04-22 16:43:00 +00:00
'departments': fields.One2Many('clinic.department.product','product_id','Departments'),
2015-05-08 01:09:12 +00:00
'report_visible': fields.Boolean("Report Visible"),
2015-02-04 05:13:10 +00:00
}
Product.register()