branch
parent
1696c488d5
commit
719389f5f6
|
@ -0,0 +1,6 @@
|
||||||
|
<action>
|
||||||
|
<field name="string">Branch</field>
|
||||||
|
<field name="view_cls">multi_view</field>
|
||||||
|
<field name="model">clinic.branch</field>
|
||||||
|
<field name="menu">clinic_menu</field>
|
||||||
|
</action>
|
|
@ -0,0 +1,4 @@
|
||||||
|
<form model="clinic.branch">
|
||||||
|
<field name="name"/>
|
||||||
|
<field name="parent_id"/>
|
||||||
|
</form>
|
|
@ -0,0 +1,4 @@
|
||||||
|
<list model="clinic.branch">
|
||||||
|
<field name="name"/>
|
||||||
|
<field name="parent_id"/>
|
||||||
|
</list>
|
|
@ -55,6 +55,7 @@
|
||||||
<!--<item string="Special Nurse" action="clinic_report_nurse_special"/>-->
|
<!--<item string="Special Nurse" action="clinic_report_nurse_special"/>-->
|
||||||
</item>
|
</item>
|
||||||
<item string="Settings">
|
<item string="Settings">
|
||||||
|
<item string="Branch" action="clinic_branch"/>
|
||||||
<item string="Departments" action="clinic_department"/>
|
<item string="Departments" action="clinic_department"/>
|
||||||
<item string="Nationalities" action="clinic_nation"/>
|
<item string="Nationalities" action="clinic_nation"/>
|
||||||
<item string="Clinic Settings" action="clinic_setting"/>
|
<item string="Clinic Settings" action="clinic_setting"/>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<field name="partner_id"/>
|
<field name="partner_id"/>
|
||||||
<field name="categ_id"/>
|
<field name="categ_id"/>
|
||||||
<field name="doctor_id"/>
|
<field name="doctor_id"/>
|
||||||
|
<field name="branch_id"/>
|
||||||
<tabs>
|
<tabs>
|
||||||
<tab string="General Information">
|
<tab string="General Information">
|
||||||
<group span="6" columns="1">
|
<group span="6" columns="1">
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
<field name="number"/>
|
<field name="number"/>
|
||||||
<field name="hn"/>
|
<field name="hn"/>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
|
<field name="branch_id"/>
|
||||||
<field name="reg_date"/>
|
<field name="reg_date"/>
|
||||||
<field name="resign_date"/>
|
<!--<field name="resign_date"/>-->
|
||||||
<field name="categ_id"/>
|
<field name="categ_id"/>
|
||||||
<field name="type"/>
|
<field name="type"/>
|
||||||
</list>
|
</list>
|
||||||
|
|
|
@ -62,3 +62,4 @@ from . import report_recent_patient
|
||||||
from . import report_discontinue_patient
|
from . import report_discontinue_patient
|
||||||
from . import report_nurse_fee_sum
|
from . import report_nurse_fee_sum
|
||||||
from . import report_nurse_fee_detail
|
from . import report_nurse_fee_detail
|
||||||
|
from . import branch
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
from netforce.model import Model, fields
|
||||||
|
|
||||||
|
class Branch(Model):
|
||||||
|
_name="clinic.branch"
|
||||||
|
_string="Branch"
|
||||||
|
_key=['name']
|
||||||
|
_fields={
|
||||||
|
"name": fields.Char("Name",required=True,search=True),
|
||||||
|
"parent_id": fields.Many2One("clinic.branch","Parent"),
|
||||||
|
}
|
||||||
|
|
||||||
|
Branch.register()
|
|
@ -14,7 +14,7 @@ class Patient(Model):
|
||||||
_string="Patient"
|
_string="Patient"
|
||||||
_audit_log=True
|
_audit_log=True
|
||||||
_multi_company=True
|
_multi_company=True
|
||||||
_key=["name"]
|
_key=["number,name"]
|
||||||
|
|
||||||
def _get_age(self,ids,context):
|
def _get_age(self,ids,context):
|
||||||
res={}
|
res={}
|
||||||
|
@ -82,6 +82,7 @@ class Patient(Model):
|
||||||
"documents": fields.One2Many("document","related_id","Documents"),
|
"documents": fields.One2Many("document","related_id","Documents"),
|
||||||
'resign_date': fields.Date("Resign Date"),
|
'resign_date': fields.Date("Resign Date"),
|
||||||
'rm_remain_visit': fields.Boolean("Auto Remove Remaining Visit"),
|
'rm_remain_visit': fields.Boolean("Auto Remove Remaining Visit"),
|
||||||
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_number(self,context={}):
|
def _get_number(self,context={}):
|
||||||
|
|
Loading…
Reference in New Issue