diff --git a/base_hospital_management/doc/RELEASE_NOTES.md b/base_hospital_management/doc/RELEASE_NOTES.md index 6948336ea..8348302ee 100755 --- a/base_hospital_management/doc/RELEASE_NOTES.md +++ b/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 diff --git a/base_hospital_management/static/src/js/lab_dashboard.js b/base_hospital_management/static/src/js/lab_dashboard.js index 55085948c..1af49f588 100755 --- a/base_hospital_management/static/src/js/lab_dashboard.js +++ b/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('') + if(!self.$('#create').length){ + self.$('#create-button').append('') + } }) }, //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 - ('') + if(!self.$('#create').length){ + self.$('#create-button').append('') + } rpc.query({ model: 'hospital.vaccination', method: 'fetch_vaccination_data', diff --git a/base_hospital_management/static/src/xml/lab_dashboard_templates.xml b/base_hospital_management/static/src/xml/lab_dashboard_templates.xml index ce9d0bf64..db8d20557 100755 --- a/base_hospital_management/static/src/xml/lab_dashboard_templates.xml +++ b/base_hospital_management/static/src/xml/lab_dashboard_templates.xml @@ -38,6 +38,7 @@
+