2015-02-03 08:37:43 +00:00
|
|
|
import time
|
|
|
|
|
|
|
|
from netforce.model import Model, fields, get_model
|
2014-10-27 14:17:22 +00:00
|
|
|
|
2014-12-14 11:15:14 +00:00
|
|
|
class AccountInvoice(Model):
|
|
|
|
_inherit="account.invoice"
|
|
|
|
_fields={
|
|
|
|
'clinic_expense_id': fields.Many2One("clinic.hd.case.expense","Expense"),
|
2015-01-20 13:58:38 +00:00
|
|
|
'department_id': fields.Many2One("clinic.department","Department",search=True),
|
2015-03-04 07:19:53 +00:00
|
|
|
'patient_partner_id': fields.Many2One("partner","Patient",search=True),
|
2014-12-14 11:15:14 +00:00
|
|
|
}
|
2015-02-03 08:37:43 +00:00
|
|
|
|
2015-03-04 07:19:53 +00:00
|
|
|
|
2014-12-14 11:15:14 +00:00
|
|
|
AccountInvoice.register()
|