clinic/netforce_clinic/models/product.py

12 lines
365 B
Python

from netforce.model import Model, fields
class Product(Model):
_inherit="product"
_fields={
'patient_types': fields.Many2Many("clinic.patient.type","Patient Types"),
'departments': fields.One2Many('clinic.department.product','product_id','Departments'),
'report_visible': fields.Boolean("Report Visible"),
}
Product.register()