|
|
@ -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', |
|
|
|