2014-10-03 06:09:10 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
2014-10-04 03:21:07 +00:00
|
|
|
class Invoice(Model):
|
|
|
|
_name="clinic.invoice"
|
|
|
|
_string="Clinic Invoice"
|
2014-10-03 06:09:10 +00:00
|
|
|
|
|
|
|
_fields={
|
|
|
|
'je_id': fields.Many2One("clinic.je","Journal Entry"),
|
2014-10-04 03:21:07 +00:00
|
|
|
'invoice_id': fields.Many2One("account.invoice","NF Invoice"),
|
2014-10-03 06:09:10 +00:00
|
|
|
'amount': fields.Float("Amount"),
|
|
|
|
}
|
|
|
|
|
2014-10-04 03:21:07 +00:00
|
|
|
Invoice.register()
|