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 #### ADD
- Initial commit for Hospital Management Odoo 16 - 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 #result-attachment': '_onChangeFile',
'change #recurring': '_onChangeRecurring', 'change #recurring': '_onChangeRecurring',
'change #vaccine-patient-name': '_onChangeRecurring', 'change #vaccine-patient-name': '_onChangeRecurring',
'click #create-vaccination': '_createVaccination', 'click #create-vaccination': '_createVaccination',
'click #update-result': 'testResultUpdate', 'click #update-result': 'testResultUpdate',
'click #end-test': 'endLabTest', 'click #end-test': 'endLabTest',
'click #invoice-test': 'invoiceLabTest', 'click #invoice-test': 'invoiceLabTest',
@ -656,8 +656,9 @@ odoo.define('base_hospital_management.lab_dashboard_action', function (require){
`) `)
count += 1; count += 1;
}) })
self.$('#create-button').html('<button class="btn btn-outline-info" id="create" if(!self.$('#create').length){
style="margin-left:10px;">Create</button>') 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 //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(){ _vaccination: function(){
var self = this var self = this
self.state = 'hospital.vaccination' self.state = 'hospital.vaccination'
self.$('#create-button').html if(!self.$('#create').length){
('<button class="btn btn-outline-info" self.$('#create-button').append('<button class="btn btn-outline-info" id="create" style="margin-left:10px;">Create</button>')
id="create" style="margin-left:10px;">Create</button>') }
rpc.query({ rpc.query({
model: 'hospital.vaccination', model: 'hospital.vaccination',
method: 'fetch_vaccination_data', method: 'fetch_vaccination_data',

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

@ -38,6 +38,7 @@
</button> </button>
<div id="create-button"/> <div id="create-button"/>
</div> </div>
<div id="create-button"/>
</div> </div>
<div class="row" id="main-div"> <div class="row" id="main-div">
<div class="col" id="main-view"> <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> <field name="tag">reception_dashboard_tags</field>
</record> </record>
<!--Reception dashboard menu--> <!--Reception dashboard menu-->
<menuitem name="Dashboard" id="reception_dashboard_menu" <menuitem name="Reception Dashboard" id="reception_dashboard_menu"
parent="hospital_menu_root" sequence="0" parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_receptionist" groups="base_hospital_management.base_hospital_management_group_receptionist"
action="reception_dashboard_action"/> action="reception_dashboard_action"/>
@ -43,7 +43,7 @@
<field name="tag">lab_dashboard_tags</field> <field name="tag">lab_dashboard_tags</field>
</record> </record>
<!--Lab dashboard menu--> <!--Lab dashboard menu-->
<menuitem id="lab_dashboard_menu" name="Dashboard" <menuitem id="lab_dashboard_menu" name="Laboratory Dashboard"
parent="hospital_menu_root" sequence="0" parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_lab_assistant" groups="base_hospital_management.base_hospital_management_group_lab_assistant"
action="lab_dashboard_action"/> action="lab_dashboard_action"/>
@ -53,7 +53,7 @@
<field name="tag">pharmacy_dashboard_tags</field> <field name="tag">pharmacy_dashboard_tags</field>
</record> </record>
<!-- Pharmacist dashboard menu--> <!-- Pharmacist dashboard menu-->
<menuitem id="pharma_dashboard_menu" name="Dashboard" <menuitem id="pharma_dashboard_menu" name="Pharmacist Dashboard"
parent="hospital_menu_root" sequence="0" parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_pharmacist" groups="base_hospital_management.base_hospital_management_group_pharmacist"
action="pharmacist_dashboard_action"/> action="pharmacist_dashboard_action"/>
@ -63,7 +63,7 @@
<field name="tag">doctor_dashboard_tags</field> <field name="tag">doctor_dashboard_tags</field>
</record> </record>
<!-- Doctor dashboard menu--> <!-- Doctor dashboard menu-->
<menuitem id="doctor_dashboard_menu" name="Dashboard" <menuitem id="doctor_dashboard_menu" name="Doctor Dashboard"
parent="hospital_menu_root" sequence="0" parent="hospital_menu_root" sequence="0"
groups="base_hospital_management.base_hospital_management_group_doctor" groups="base_hospital_management.base_hospital_management_group_doctor"
action="doctor_dashboard_action"/> action="doctor_dashboard_action"/>

Loading…
Cancel
Save