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

fix: Nombres de modelos relacionados en commed_icu.

parent 94712684
......@@ -337,7 +337,7 @@ class ApacheII(models.Model):
self.apache_score = total
class CommedMechanicalVentilation(models.Model):
class CommedIcuVentilation(models.Model):
_name = 'commed.icu_ventilation'
_description = 'Mechanical Ventilation History'
......@@ -385,12 +385,15 @@ class CommedMechanicalVentilation(models.Model):
remarks = fields.Char('Remarks')
class ChestDrainageAssessment(models.Model):
"""Chest Drainage Asessment"""
_name = 'icu.chest.drainage'
class IcuChestDrainage(models.Model):
_name = 'icu.chest_drainage'
_description = 'Chest Drainage Asessment'
name = fields.Many2one('commed.patient_rounding', 'Rounding', required=True)
name = fields.Many2one(
'commed.patient_rounding',
'Rounding',
required=True
)
location = fields.Selection(
[
('blank', '-'),
......@@ -519,7 +522,7 @@ class CommedPatientRounding(models.Model):
states=STATES
)
chest_drainages = fields.One2many(
'icu.chest.drainage',
'icu.chest_drainage',
'name',
"Drainages",
states=STATES
......
......@@ -5,4 +5,4 @@ access_icu_glasgow,access_icu_glasgow,model_icu_glasgow,base.group_user,1,1,1,1
access_icu_apache2,access_icu_apache2,model_icu_apache2,base.group_user,1,1,1,1
access_icu_ventilation,access_icu_ventilation,model_commed_icu_ventilation,base.group_user,1,1,1,1
access_icu_chest_drainage,access_icu_chest_drainage,model_icu_chest_drainage,base.group_user,1,1,1,1
access_patient_rounding,access_patient_rounding,model_patient_rounding,base.group_user,1,1,1,1
access_patient_rounding,access_patient_rounding,model_commed_patient_rounding,base.group_user,1,1,1,1
......@@ -7,8 +7,8 @@
-->
<odoo>
<record id="commed_icu_chest_drainage_form_view" model="ir.ui.view">
<field name="name">icu.chest.drainage.form.view</field>
<field name="model">icu.chest.drainage</field>
<field name="name">icu.chest_drainage.form.view</field>
<field name="model">icu.chest_drainage</field>
<field name="arch" type="xml">
<form>
<group name="" colspan="4">
......
......@@ -8,7 +8,7 @@
<odoo>
<record id='commed_icu_chest_drainage_view_tree' model='ir.ui.view'>
<field name="name">ICU Test Drainage</field>
<field name="model">icu.chest.drainage</field>
<field name="model">icu.chest_drainage</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<tree string="Drainage" >
......
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