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

        <record id="action_soporteincidencias_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.soporte_incidencia</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[["si_responsable","=",uid]]</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>

        <record id="action_soporteincidenciasconfig_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.soporte_incidencia</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>
        
        <record id="view_soporteincidencias_tree" model="ir.ui.view">
            <field name="name">Incidencias</field>
            <field name="model">hgt.soporte_incidencia</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="si_numero" />
                    <field name="si_ost_asunto" />
                    <field name="si_fecha"/>
                    <field name="si_url" widget="url"/>
                    <field name="si_descripcion"/>
                </tree>                
            </field>
        </record>

        <record id="view_soporteincidencias_form" model="ir.ui.view">
            <field name="name">Incidencias</field>
            <field name="model">hgt.soporte_incidencia</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="si_fecha"/>
                            <field colspan="2" name="si_estado"/>
                            
                        </group>
                        <group col="4">
                            <field colspan="2" name="si_responsabilidad"/>
                        </group>
                        <h2>Osticket</h2>
                        <group col="2">
                            <field name="si_url" widget="url"/>
                            <field name="si_numero" />
                            <field name="si_ost_cliente" />
                        </group>
                        <group col="4">
                            <field name="si_ost_mail" />
                            <field name="si_ost_telefeno" />
                        </group>
                        <group col="1">
                            <h2>Asunto</h2>
                            <field name="si_ost_asunto" nolabel="1"/>
                            <h2>Descripcion</h2>
                            <field name="si_descripcion" nolabel="1"/>
                            <h2>Mensajes</h2>
                            <field name="si_ost_mensaje" nolabel="1"/>
                        </group>
                        
                    <!--</sheet>-->
                </form>                
            </field>
        </record>
        
        

    </data>
</odoo>