incidencias.xml 3.82 KB
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data noupdate="0">

        <record id="action_incidencias_act_window" model="ir.actions.act_window">
            <field name="type">ir.actions.act_window</field>
            <field name="name">Incidencias</field>
            <field name="res_model">hgt.incidencias</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>
        
        <record id="view_incidencias_tree" model="ir.ui.view">
            <field name="name">Incidencias</field>
            <field name="model">hgt.incidencias</field>
            <field name="type">tree</field>
            <field name="mode">primary</field>
            <field name="priority" eval="16" />
            <field name="active" eval="True" />
            <field name="arch" type="xml">
                <tree> 
                    <field name="numero" />
                    <field name="ost_asunto" />
                    <field name="fecha_creacion"/>
                    <field name="url" widget="url"/>
                    <field colspan="2" name="cliente"/>
                    <field name="descripcion"/>
                </tree>                
            </field>
        </record>

        <record id="view_incidencias_form" model="ir.ui.view">
            <field name="name">Incidencias</field>
            <field name="model">hgt.incidencias</field>
            <field name="type">form</field>
            <field name="mode">primary</field>
            <field name="priority" eval="16" />
            <field name="active" eval="True" />
            <field name="arch" type="xml">
                <form> 
                    <sheet>
                        <group col="4" string="Incidencia">
                            <field colspan="2" name="fecha_creacion"/>
                            <field colspan="2" name="estado"/>
                            
                        </group>
                        <group col="4">
                            <field colspan="2" name="responsabilidad"/>
                            <field colspan="2" name="cliente"/>
                        </group>
                        <h2>Osticket</h2>
                        <group col="2">
                            <field name="url" widget="url"/>
                            <field name="numero" />
                            <field name="ost_cliente" />
                        </group>
                        <group col="4">
                            <field name="ost_mail" />
                            <field name="ost_telefeno" />
                        </group>
                        <group col="1">
                            <h2>Asunto</h2>
                            <field name="ost_asunto" nolabel="1"/>
                            <h2>Descripcion</h2>
                            <field name="descripcion" nolabel="1"/>
                            <h2>Mensajes</h2>
                            <field name="ost_mensaje" nolabel="1"/>
                        </group>
                        
                        <notebook>
                            <page string="Tareas">
                                <group col="4">
                                    <field name="proyecto" colspan="2" />
                                    <field name="accion" colspan="2"/>
                                    <field name="tarea" colspan="2" readonly="1"/>
                                </group>
                            </page>
                            <page string="Reporte">
                                <field name="reporte" nolabel="1"/>
                            </page>
                        </notebook>
                    </sheet>
                </form>                
            </field>
        </record>
        
        

    </data>
</odoo>