clinic/netforce_clinic/models/account_invoice.py

13 lines
347 B
Python
Raw Normal View History

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),
2014-12-14 11:15:14 +00:00
}
2015-02-03 08:37:43 +00:00
2014-12-14 11:15:14 +00:00
AccountInvoice.register()