Browse Source

May 27: [FIX] BUG FIXED 'base_hospital_management'

pull/320/head
RisvanaCybro 11 months ago
parent
commit
3b380582bc
  1. 6
      base_hospital_management/doc/RELEASE_NOTES.md
  2. 13
      base_hospital_management/static/src/js/lab_dashboard.js
  3. 1
      base_hospital_management/static/src/xml/lab_dashboard_templates.xml
  4. 8
      base_hospital_management/views/menu_views.xml

6
base_hospital_management/doc/RELEASE_NOTES.md

@ -5,3 +5,9 @@
#### ADD
- Initial commit for Hospital Management Odoo 16
#### 24.05.2024
#### Version 16.0.1.0.1
#### UPDT
- Updated laboratory dashboard, menu items and vaccination creation

13
base_hospital_management/static/src/js/lab_dashboard.js

@ -25,7 +25,7 @@ odoo.define('base_hospital_management.lab_dashboard_action', function (require){
'change #result-attachment': '_onChangeFile',
'change #recurring': '_onChangeRecurring',
'change #vaccine-patient-name': '_onChangeRecurring',
'click #create-vaccination': '_createVaccination',
'click #create-vaccination': '_createVaccination',
'click #update-result': 'testResultUpdate',
'click #end-test': 'endLabTest',
'click #invoice-test': 'invoiceLabTest',
@ -656,8 +656,9 @@ odoo.define('base_hospital_management.lab_dashboard_action', function (require){
`)
count += 1;
})
self.$('#create-button').html('<button class="btn btn-outline-info" id="create"
style="margin-left:10px;">Create</button>')
if(!self.$('#create').length){
self.$('#create-button').append('<button class="btn btn-outline-info" id="create" style="margin-left:10px;">Create</button>')
}
})
},
//Method for getting the data of a particular lab test
@ -738,9 +739,9 @@ odoo.define('base_hospital_management.lab_dashboard_action', function (require){
_vaccination: function(){
var self = this
self.state = 'hospital.vaccination'
self.$('#create-button').html
('<button class="btn btn-outline-info"
id="create" style="margin-left:10px;">Create</button>')
if(!self.$('#create').length){
self.$('#create-button').append('<button class="btn btn-outline-info" id="create" style="margin-left:10px;">Create</button>')
}
rpc.query({
model: 'hospital.vaccination',
method: 'fetch_vaccination_data',

1
base_hospital_management/static/src/xml/lab_dashboard_templates.xml

@ -38,6 +38,7 @@
</button>
<div id="create-button"/>
</div>
<div id="create-button"/>
</div>
<div class="row" id="main-div">
<div class="col" id="main-view">

8
base_hospital_management/views/menu_views.xml

@ -33,7 +33,7 @@
<field name="tag">reception_dashboard_tags</field>
</record>
<!--Reception dashboard menu-->
<menuitem name="Dashboard" id="reception_dashboard_menu"
<menuitem name="Reception Dashboard" id="reception_dashboard_menu"
parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_receptionist"
action="reception_dashboard_action"/>
@ -43,7 +43,7 @@
<field name="tag">lab_dashboard_tags</field>
</record>
<!--Lab dashboard menu-->
<menuitem id="lab_dashboard_menu" name="Dashboard"
<menuitem id="lab_dashboard_menu" name="Laboratory Dashboard"
parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_lab_assistant"
action="lab_dashboard_action"/>
@ -53,7 +53,7 @@
<field name="tag">pharmacy_dashboard_tags</field>
</record>
<!-- Pharmacist dashboard menu-->
<menuitem id="pharma_dashboard_menu" name="Dashboard"
<menuitem id="pharma_dashboard_menu" name="Pharmacist Dashboard"
parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_pharmacist"
action="pharmacist_dashboard_action"/>
@ -63,7 +63,7 @@
<field name="tag">doctor_dashboard_tags</field>
</record>
<!-- Doctor dashboard menu-->
<menuitem id="doctor_dashboard_menu" name="Dashboard"
<menuitem id="doctor_dashboard_menu" name="Doctor Dashboard"
parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_doctor"
action="doctor_dashboard_action"/>

Loading…
Cancel
Save