clinic/netforce_clinic/models/payment.py

15 lines
373 B
Python
Raw Normal View History

2014-10-03 08:24:53 +00:00
from netforce.model import Model, fields
2014-10-04 03:21:07 +00:00
class Payment(Model):
_name="clinic.payment"
_string="Payment"
2014-10-03 08:24:53 +00:00
_fields={
2014-10-03 11:08:10 +00:00
'doc_date': fields.Date("Doc Date"),
2014-10-03 08:24:53 +00:00
'name': fields.Char("Name"),
'hn': fields.Char("HN"),
'amount': fields.Float("Amount"),
'je_id': fields.Many2One("clinic.je","Journal Entry"),
}
2014-10-04 03:21:07 +00:00
Payment.register()