clinic/netforce_clinic/models/import_data_sc.py

26 lines
963 B
Python
Raw Normal View History

2014-10-22 03:45:23 +00:00
from netforce.model import Model, fields
class ImportDataSC(Model):
_name="clinic.data.sc"
_transient=True
_fields={
2014-10-24 08:08:56 +00:00
'hn': fields.Char("hn", search=True),
'name14': fields.Char("name14", search=True),
'hcode18': fields.Char("hcode18", search=True),
'amount23': fields.Char("amount23", search=True),
"cur": fields.Char("cur"),
'epoadm29': fields.Char("epoadm29"),
'eponame': fields.Char("eponame"),
'ln': fields.Char('ln'),
'st': fields.Char('st'),
'allow37': fields.Char('allow37'),
2014-10-24 10:40:01 +00:00
'dttran': fields.Date("dttran"),
2014-10-27 19:01:18 +00:00
'type': fields.Selection([['match','Match'],['not_match','Not Match']],'Type', search=True),
'hd_case_id': fields.Many2One("clinic.hd.case","HD Case"),
#'invoice_id': fields.Many2One("clinic.hd.case","HD Case"),
2014-10-22 03:45:23 +00:00
}
2014-10-27 19:01:18 +00:00
_order="type"
2014-10-22 03:45:23 +00:00
ImportDataSC.register()