clinic/netforce_clinic/models/payment.py

15 lines
373 B
Python

from netforce.model import Model, fields
class Payment(Model):
_name="clinic.payment"
_string="Payment"
_fields={
'doc_date': fields.Date("Doc Date"),
'name': fields.Char("Name"),
'hn': fields.Char("HN"),
'amount': fields.Float("Amount"),
'je_id': fields.Many2One("clinic.je","Journal Entry"),
}
Payment.register()