|
@@ -55,13 +55,14 @@
|
|
|
<form string="Orden Clinico">
|
|
|
<header>
|
|
|
<!-- <button name="Facturado" string="Crear Factura" type="object" class="btn-primary" states="done"/> -->
|
|
|
- <button name="button_draft" string="Cambiar Estado" type="object"/>
|
|
|
+ <button name="button_redraft" string="Atrás" type="object"/>
|
|
|
<button name="button_in_progress" type="object" states="draft,warranty" string="Crear" class="oe_highlight" groups="base.group_user"/>
|
|
|
- <button name="button_in_progress_back" type="object" states="in_progress" string="Atrás" class="oe_highlight" groups="base.group_user"/>
|
|
|
- <button name="button_done" type="object" states="in_progress" string="En progreso" class="oe_highlight" groups="base.group_user"/>
|
|
|
- <button name="button_done_back" type="object" states="done" string="Hecho" class="oe_highlight" groups="base.group_user"/>
|
|
|
- <button name="button_cancel" type="object" states="draft,warranty,in_progress" string="Cancelado" class="oe_highlight" groups="base.group_user"/>
|
|
|
- <field name="state" widget="statusbar" statusbar_visible="draft,in_progress,done" statusbar_colors='{"done":"red","warning":"blue","canceled":"red","in_progress":"blue"}'/>
|
|
|
+ <button name="button_in_progress_back" type="object" states="redraft" string="Atrás" class="oe_highlight" groups="base.group_user"/>
|
|
|
+ <button name="button_redraft_back" type="object" states="in_progress,redraft" string="Adelante" class="oe_highlight" groups="base.group_user"/>
|
|
|
+ <button name="button_done" type="object" states="in_progress" string="Hecho" class="oe_highlight" groups="base.group_user"/>
|
|
|
+ <button name="button_done_back" type="object" states="done" string="En progreso" class="oe_highlight" groups="base.group_user"/>
|
|
|
+ <button name="button_cancel" type="object" states="draft,redraft,warranty,in_progress" string="Cancelado" class="oe_highlight" groups="base.group_user"/>
|
|
|
+ <field name="state" widget="statusbar" statusbar_visible="draft,redraft,in_progress,done" statusbar_colors='{"done":"red","warning":"blue","canceled":"red","in_progress":"blue"}'/>
|
|
|
</header>
|
|
|
<sheet>
|
|
|
<div class="oe_title">
|
|
@@ -73,57 +74,66 @@
|
|
|
|
|
|
<group>
|
|
|
<group>
|
|
|
- <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
|
|
|
- <field name="paciente_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
|
|
|
- <field name="user_id" required="1"/>
|
|
|
+ <field name="user_id"/>
|
|
|
+ <field name="order_date" required="1"/>
|
|
|
<field name="name_movil"/>
|
|
|
- <field name="nro_salida"/>
|
|
|
- <field name="seguro"/>
|
|
|
+ <field name="planned_start_date" required="1"/>
|
|
|
<field name="tipo_paciente"/>
|
|
|
- <field name="embarazada"/>
|
|
|
+ <field name="uso_gel"/>
|
|
|
</group>
|
|
|
- <group name="Dates">
|
|
|
- <field name="order_date" required="1"/>
|
|
|
- <field name="planned_start_date" required="1"/>
|
|
|
+ <group name="Data1">
|
|
|
+ <field name="paramedico_id"/>
|
|
|
+ <field name="at_base"/>
|
|
|
+ <field name="nro_salida"/>
|
|
|
<field name="planned_end_date" required="1"/>
|
|
|
<field name="lugar_visita"/>
|
|
|
+ </group>
|
|
|
+ </group>
|
|
|
+ <group>
|
|
|
+ <group>
|
|
|
+ <field name="paciente_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
|
|
|
+ </group>
|
|
|
+ </group>
|
|
|
+ <group>
|
|
|
+ <group>
|
|
|
+ <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
|
|
|
+ <field name="antecedente_paciente"/>
|
|
|
+ <field name="embarazada"/>
|
|
|
+ <field name="motivo" placeholder="describe los motivos de consulta..." />
|
|
|
+ </group>
|
|
|
+ <group>
|
|
|
<field name="nro_socio"/>
|
|
|
<field name="alergico"/>
|
|
|
+ <field name="tipo_alergico"/>
|
|
|
</group>
|
|
|
</group>
|
|
|
- <!-- <separator string="Causes"/>
|
|
|
- <field name="causes" placeholder="what happens to it" /> -->
|
|
|
+ <group string="Signos Vitales">
|
|
|
+ <group>
|
|
|
+ <field name="pa"/>
|
|
|
+ <field name="fc"/>
|
|
|
+ <field name="fr"/>
|
|
|
+ </group>
|
|
|
+ <group>
|
|
|
+ <field name="temp"/>
|
|
|
+ <field name="so"/>
|
|
|
+ <field name="hgt"/>
|
|
|
+ </group>
|
|
|
+ </group>
|
|
|
+
|
|
|
+ <group>
|
|
|
+ <group>
|
|
|
+ <field name="diagnostic" placeholder="describe hallazgo Positivos del Examen Físico (o datos de importancia)..." />
|
|
|
+ <field name="indicacion" placeholder="describe la indicación médica..." />
|
|
|
+ </group>
|
|
|
+ </group>
|
|
|
+
|
|
|
<notebook>
|
|
|
- <page string="Signos Vitales">
|
|
|
- <group>
|
|
|
- <group>
|
|
|
- <field name="pa"/>
|
|
|
- <field name="fc"/>
|
|
|
- <field name="fr"/>
|
|
|
- </group>
|
|
|
- <group>
|
|
|
- <field name="temp"/>
|
|
|
- <field name="so"/>
|
|
|
- <field name="hgt"/>
|
|
|
- </group>
|
|
|
- </group>
|
|
|
- </page>
|
|
|
<page string="Lineas de orden">
|
|
|
<field name="line_ids"/>
|
|
|
- </page>
|
|
|
- <page string="Operaciones">
|
|
|
- <separator string="Motivos de consulta"/>
|
|
|
- <field name="motivo" placeholder="describe los motivos de consulta..." />
|
|
|
- <separator string="Hallazgo Positivos del Examen Físico (o datos de importancia)"/>
|
|
|
- <field name="diagnostic" placeholder="describe hallazgo Positivos del Examen Físico (o datos de importancia)..." />
|
|
|
- <separator string="Indicación Médica"/>
|
|
|
- <field name="indicacion" placeholder="describe la indicación médica..." />
|
|
|
<separator string="Acciones"/>
|
|
|
<field name="actions" placeholder="describe las acciones..." />
|
|
|
<separator string="Recomendaciones y sugerencias"/>
|
|
|
<field name="recommendations" placeholder="describe las recommendaciones..." />
|
|
|
- </page>
|
|
|
- <page string="Otros datos">
|
|
|
<separator string="Epicrisis"/>
|
|
|
<field name="epicrisis" placeholder="describe el Epicrisis..." />
|
|
|
<separator string="Presuntivo"/>
|
|
@@ -230,67 +240,7 @@
|
|
|
<field name="search_view_id" ref="search_clinic_history_line_sis"/>
|
|
|
</record>
|
|
|
|
|
|
- <!-- <record id="tree_clinic_history_consumed_sis" model="ir.ui.view">
|
|
|
- <field name="name">clinic.history.consumed.sis.tree</field>
|
|
|
- <field name="model">clinic.history.consumed</field>
|
|
|
- <field name="arch" type="xml">
|
|
|
- <tree string="Productos consumidos" editable="bottom">
|
|
|
- <field name="product_id"/>
|
|
|
- <field name="description"/>
|
|
|
- <field name="quantity"/>
|
|
|
- <field name="price_unit"/>
|
|
|
- <field name="subtotal"/>
|
|
|
- <field name="type"/>
|
|
|
- </tree>
|
|
|
- </field>
|
|
|
- </record>
|
|
|
|
|
|
- <record id="search_clinic_history_consumed_sis" model="ir.ui.view">
|
|
|
- <field name="name">clinic.history.consumed.search</field>
|
|
|
- <field name="model">clinic.history.consumed</field>
|
|
|
- <field name="arch" type="xml">
|
|
|
- <search string="Productos y servicios consumidos">
|
|
|
- <field name="type"/>
|
|
|
- <field name="product_id"/>
|
|
|
- <field name="description"/>
|
|
|
- <field name="quantity"/>
|
|
|
- <field name="price_unit"/>
|
|
|
- <field name="subtotal"/>
|
|
|
- <newline />
|
|
|
- <group expand="0" string="Agrupado por...">
|
|
|
- <filter string="Nombre" domain="[]" context="{'group_by':'type'}" />
|
|
|
- </group>
|
|
|
- </search>
|
|
|
- </field>
|
|
|
- </record>
|
|
|
-
|
|
|
- <record id="form_clinic_history_consumed_sis" model="ir.ui.view">
|
|
|
- <field name="name">clinic.history.consumed.form</field>
|
|
|
- <field name="model">clinic.history.consumed</field>
|
|
|
- <field name="arch" type="xml">
|
|
|
- <form string="Productos y servicios consumidos">
|
|
|
- <sheet>
|
|
|
- <group>
|
|
|
- <field name="product_id"/>
|
|
|
- <field name="type"/>
|
|
|
- <field name="description"/>
|
|
|
- <field name="quantity"/>
|
|
|
- <field name="price_unit"/>
|
|
|
- <field name="subtotal"/>
|
|
|
- </group>
|
|
|
- </sheet>
|
|
|
- </form>
|
|
|
- </field>
|
|
|
- </record>
|
|
|
-
|
|
|
- <record id="action_clinic_history_consumed_sis" model="ir.actions.act_window">
|
|
|
- <field name="name">Productos y servicios consumidos</field>
|
|
|
- <field name="type">ir.actions.act_window</field>
|
|
|
- <field name="res_model">clinic.history.consumed</field>
|
|
|
- <field name="view_type">form</field>
|
|
|
- <field name="view_mode">tree,form</field>
|
|
|
- <field name="search_view_id" ref="search_clinic_history_consumed_sis"/>
|
|
|
- </record> -->
|
|
|
|
|
|
<menuitem id="clinic_history_sis" parent="base.menu_sales" action="action_clinic_history_sis" name="Orden de historia visita clínica" sequence="20"/>
|
|
|
|