branch
parent
4f1e1cd693
commit
8c65f98dea
|
@ -1,4 +1,5 @@
|
||||||
<form model="clinic.branch">
|
<form model="clinic.branch">
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="parent_id"/>
|
<field name="parent_id"/>
|
||||||
|
<field name="pick_out_journal_id"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<form model="clinic.department">
|
<form model="clinic.department" show_company="1">
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="code"/>
|
<field name="code"/>
|
||||||
<field name="parent_id"/>
|
<field name="parent_id"/>
|
||||||
|
<field name="branch_id"/>
|
||||||
|
<field name="company_id" invisible="1"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="code"/>
|
<field name="code"/>
|
||||||
<field name="parent_id"/>
|
<field name="parent_id"/>
|
||||||
|
<field name="branch_id"/>
|
||||||
</list>
|
</list>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<field name="department_id" span="2"/>
|
<field name="department_id" span="2"/>
|
||||||
<field name="cycle_item_id" span="2" domain="[['cycle_id','=',cycle_id]]"/>
|
<field name="cycle_item_id" span="2" domain="[['cycle_id','=',cycle_id]]"/>
|
||||||
<field name="visit_id" span="2"/>
|
<field name="visit_id" span="2"/>
|
||||||
|
<field name="branch_id" span="2"/>
|
||||||
<field name="req_fee" span="2" invisible="1"/>
|
<field name="req_fee" span="2" invisible="1"/>
|
||||||
<!-- enable show_company=1 -->
|
<!-- enable show_company=1 -->
|
||||||
<field name="company_id" span="2" invisible="1"/>
|
<field name="company_id" span="2" invisible="1"/>
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
<item string="Races" action="clinic_race"/>
|
<item string="Races" action="clinic_race"/>
|
||||||
<item string="Morbidities" action="clinic_morbidity"/>
|
<item string="Morbidities" action="clinic_morbidity"/>
|
||||||
</item>
|
</item>
|
||||||
<item string="Cycles" perm="clinic_cycle">
|
|
||||||
<item string="Cycles" action="clinic_cycle"/>
|
|
||||||
<item string="Cycle Items" action="clinic_cycle_item"/>
|
|
||||||
</item>
|
|
||||||
<item string="Schedules" action="clinic_schedule" perm="clinic_schedule">
|
<item string="Schedules" action="clinic_schedule" perm="clinic_schedule">
|
||||||
<item string="Schedules" action="clinic_schedule"/>
|
<item string="Schedules" action="clinic_schedule"/>
|
||||||
<item string="Schedules Board" action="clinic_schedule_board"/>
|
<item string="Schedules Board" action="clinic_schedule_board"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item string="Cycles" perm="clinic_cycle">
|
||||||
|
<item string="Cycles" action="clinic_cycle"/>
|
||||||
|
<item string="Cycle Items" action="clinic_cycle_item"/>
|
||||||
|
</item>
|
||||||
<item string="Visits" perm="clinic_visit">
|
<item string="Visits" perm="clinic_visit">
|
||||||
<item string="Visits" action="clinic_visit"/>
|
<item string="Visits" action="clinic_visit"/>
|
||||||
<item string="Visit Board" action="clinic_visit_board"/>
|
<item string="Visit Board" action="clinic_visit_board"/>
|
||||||
|
@ -40,8 +40,10 @@
|
||||||
<item string="HD Cases" perm="clinic_hdcase">
|
<item string="HD Cases" perm="clinic_hdcase">
|
||||||
<item string="HD Cases" action="clinic_hd_case"/>
|
<item string="HD Cases" action="clinic_hd_case"/>
|
||||||
<divider/>
|
<divider/>
|
||||||
<header string="OTHERS"/>
|
<header string="SETTINGS"/>
|
||||||
<item string="Sickbed" action="clinic_sickbed"/>
|
<item string="Sickbed" action="clinic_sickbed"/>
|
||||||
|
<item string="Departments" action="clinic_department"/>
|
||||||
|
<item string="Valcular Access" action="clinic_vascular_access"/>
|
||||||
</item>
|
</item>
|
||||||
<item string="Reports" perm="clinic_report">
|
<item string="Reports" perm="clinic_report">
|
||||||
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
||||||
|
@ -51,10 +53,8 @@
|
||||||
</item>
|
</item>
|
||||||
<item string="Settings" perm="clinic_settings">
|
<item string="Settings" perm="clinic_settings">
|
||||||
<item string="Branch" action="clinic_branch"/>
|
<item string="Branch" action="clinic_branch"/>
|
||||||
<item string="Departments" action="clinic_department"/>
|
|
||||||
<item string="Hospital" action="clinic_hospital"/>
|
<item string="Hospital" action="clinic_hospital"/>
|
||||||
<item string="Nationalities" action="clinic_nation"/>
|
<item string="Nationalities" action="clinic_nation"/>
|
||||||
<item string="Valcular Access" action="clinic_vascular_access"/>
|
|
||||||
<item string="Clinic Settings" action="clinic_setting"/>
|
<item string="Clinic Settings" action="clinic_setting"/>
|
||||||
</item>
|
</item>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<field name="time_start" onchange="onchange_datefrom"/>
|
<field name="time_start" onchange="onchange_datefrom"/>
|
||||||
<field name="cycle_id" onchange="onchange_cycle" required="1"/>
|
<field name="cycle_id" onchange="onchange_cycle" required="1"/>
|
||||||
<field name="department_id"/>
|
<field name="department_id"/>
|
||||||
|
<field name="branch_id"/>
|
||||||
</group>
|
</group>
|
||||||
<group span="6" columns="1">
|
<group span="6" columns="1">
|
||||||
<field name="patient_id" onchange="onchange_patient"/>
|
<field name="patient_id" onchange="onchange_patient"/>
|
||||||
|
|
|
@ -7,6 +7,7 @@ class Branch(Model):
|
||||||
_fields={
|
_fields={
|
||||||
"name": fields.Char("Name",required=True,search=True),
|
"name": fields.Char("Name",required=True,search=True),
|
||||||
"parent_id": fields.Many2One("clinic.branch","Parent"),
|
"parent_id": fields.Many2One("clinic.branch","Parent"),
|
||||||
|
"pick_out_journal_id": fields.Many2One("stock.journal","Goods Issue Journal"),
|
||||||
}
|
}
|
||||||
|
|
||||||
Branch.register()
|
Branch.register()
|
||||||
|
|
|
@ -41,13 +41,14 @@ class Cycle(Model):
|
||||||
'sequence': fields.Integer("Sequence"),
|
'sequence': fields.Integer("Sequence"),
|
||||||
'time_start': fields.Char("Start Time"),
|
'time_start': fields.Char("Start Time"),
|
||||||
'time_stop': fields.Char("End Time"),
|
'time_stop': fields.Char("End Time"),
|
||||||
'company_id': fields.Many2One("company", "Company"),
|
|
||||||
'hd_cases': fields.One2Many("clinic.hd.case","cycle_id", "HD Cases"),
|
'hd_cases': fields.One2Many("clinic.hd.case","cycle_id", "HD Cases"),
|
||||||
'visits': fields.One2Many("clinic.visit","cycle_id", "Visits"),
|
'visits': fields.One2Many("clinic.visit","cycle_id", "Visits"),
|
||||||
'cycle_items': fields.One2Many("clinic.cycle.item","cycle_id", "Cycle Items"),
|
'cycle_items': fields.One2Many("clinic.cycle.item","cycle_id", "Cycle Items"),
|
||||||
'var_k': fields.Float("K"),
|
'var_k': fields.Float("K"),
|
||||||
'color': fields.Char("Color"),
|
'color': fields.Char("Color"),
|
||||||
'note': fields.Text("Note"),
|
'note': fields.Text("Note"),
|
||||||
|
'company_id': fields.Many2One("company", "Company"),
|
||||||
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
||||||
}
|
}
|
||||||
|
|
||||||
_defaults={
|
_defaults={
|
||||||
|
|
|
@ -34,10 +34,11 @@ class CycleItem(Model):
|
||||||
'nurses': fields.One2Many("clinic.cycle.item.nurse",'cycle_item_id','Nurses'),
|
'nurses': fields.One2Many("clinic.cycle.item.nurse",'cycle_item_id','Nurses'),
|
||||||
'nurse_id': fields.Many2One("clinic.staff","Nurse",domain=[['type','=','nurse']]),
|
'nurse_id': fields.Many2One("clinic.staff","Nurse",domain=[['type','=','nurse']]),
|
||||||
'sequence': fields.Char("Sequence",function="_get_all",function_multi=True,store=True),
|
'sequence': fields.Char("Sequence",function="_get_all",function_multi=True,store=True),
|
||||||
'company_id': fields.Many2One("company", "Company"),
|
|
||||||
"state": fields.Selection([("draft","Draft"),("validated","Validated")],"Status",required=True),
|
"state": fields.Selection([("draft","Draft"),("validated","Validated")],"Status",required=True),
|
||||||
'user_id': fields.Many2One("base.user","Validator"),
|
'user_id': fields.Many2One("base.user","Validator"),
|
||||||
"comments": fields.One2Many("message","related_id","Comments"), "company_id": fields.Many2One("company","Company"),
|
"comments": fields.One2Many("message","related_id","Comments"), "company_id": fields.Many2One("company","Company"),
|
||||||
|
'company_id': fields.Many2One("company", "Company"),
|
||||||
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_vark(self,context={}):
|
def _get_vark(self,context={}):
|
||||||
|
|
|
@ -10,6 +10,8 @@ class Department(Model):
|
||||||
"name": fields.Char("Name",required=True,search=True),
|
"name": fields.Char("Name",required=True,search=True),
|
||||||
"code": fields.Char("Code",search=True),
|
"code": fields.Char("Code",search=True),
|
||||||
"parent_id": fields.Many2One("clinic.department", "Parent"),
|
"parent_id": fields.Many2One("clinic.department", "Parent"),
|
||||||
|
'company_id': fields.Many2One("company","Company"),
|
||||||
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
||||||
}
|
}
|
||||||
|
|
||||||
_defaults={
|
_defaults={
|
||||||
|
|
|
@ -115,6 +115,7 @@ class HDCase(Model):
|
||||||
'req_fee': fields.Integer("Request Expense"),
|
'req_fee': fields.Integer("Request Expense"),
|
||||||
'hd_case_id': fields.Many2One("clinic.hd.case","HD",function="_get_all",function_multi=True), # XXX
|
'hd_case_id': fields.Many2One("clinic.hd.case","HD",function="_get_all",function_multi=True), # XXX
|
||||||
'company_id': fields.Many2One("company","Company"),
|
'company_id': fields.Many2One("company","Company"),
|
||||||
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_number(self,context={}):
|
def _get_number(self,context={}):
|
||||||
|
|
|
@ -51,6 +51,7 @@ class Visit(Model):
|
||||||
'visit_date': fields.Date('Visit Date'),
|
'visit_date': fields.Date('Visit Date'),
|
||||||
'cycle_color': fields.Char('Color',function="_get_all",function_multi=True,store=True),
|
'cycle_color': fields.Char('Color',function="_get_all",function_multi=True,store=True),
|
||||||
'note': fields.Text('Note'),
|
'note': fields.Text('Note'),
|
||||||
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_number(self,context={}):
|
def _get_number(self,context={}):
|
||||||
|
|
Loading…
Reference in New Issue