Commit f47ca1e6 authored by Ángel Ramírez Isea's avatar Ángel Ramírez Isea
Browse files

fix: Dependencias correctas, referencias a modelos externos corregidas.

parent f633eeb9
......@@ -23,7 +23,8 @@
'commed_practitioner',
'commed_medication',
'commed_evaluation',
'commed_inpatient'
'commed_inpatient',
'commed_nursing'
],
'data': [
'security/ir.model.access.csv',
......
......@@ -8,9 +8,8 @@ from datetime import datetime
class CommedInpatientRegistration(models.Model):
"""Patient admission History"""
_name = 'commed.inpatient_registration'
_description = "Patient admission History"
_inherit = 'commed.inpatient_registration'
icu = fields.Boolean(
'ICU',
help='The patient was admitted to ICU during hospitalization'
......@@ -391,7 +390,7 @@ class ChestDrainageAssessment(models.Model):
_name = 'icu.chest.drainage'
_description = 'Chest Drainage Asessment'
name = fields.Many2one('patient.rounding', 'Rounding', required=True)
name = fields.Many2one('commed.patient_rounding', 'Rounding', required=True)
location = fields.Selection(
[
('blank', '-'),
......@@ -424,9 +423,9 @@ class ChestDrainageAssessment(models.Model):
remarks = fields.Char('Remarks')
class PatientRounding(models.Model):
_name = 'patient.rounding'
_description = 'Nursing Rounding for ICU'
class CommedPatientRounding(models.Model):
'''Nursing Rounding for ICU'''
_inherit = 'commed.patient_rounding'
STATES = {'done': [('readonly', True)]}
icu_patient = fields.Boolean(
......
......@@ -7,8 +7,8 @@
-->
<odoo>
<record model="ir.ui.view" id="gnuhealth_patient_icu_rounding_view">
<field name="model">patient.rounding</field>
<field name="inherit" ref="health_nursing.gnuhealth_patient_rounding_view" />
<field name="model">commed.patient_rounding</field>
<field name="inherit" ref="commed_nursing.gnuhealth_patient_rounding_view" />
<field name="name">gnuhealth_patient_icu_rounding</field>
<form>
<xpath expr="/form/notebook/page/group/label[@name='warning']" position="replace"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment