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

        <record id="action_hgt_incidencias_temas_act_window" model="ir.actions.act_window">
            <field name="type">ir.actions.act_window</field>
            <field name="name">Tema</field>
            <field name="res_model">hgt.incidencias_temas</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>
        
        <record id="view_hgt_incidencias_temas_tree" model="ir.ui.view">
            <field name="name">Tema</field>
            <field name="model">hgt.incidencias_temas</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="t_titulo" />
                    <field name="t_estado"/>
                    <field name="t_descripcion"/>
                </tree>                
            </field>
        </record>

        <record id="view_hgt_incidencias_temas_form" model="ir.ui.view">
            <field name="name">Tema</field>
            <field name="model">hgt.incidencias_temas</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="Tema">
                            <field name="t_titulo" colspan="2" />
                            <field name="t_estado" colspan="2"/>
                        </group>
                        <group col="4" string="Descripción">
                            <field name="t_descripcion" colspan="4" nolabel="1"/>
                        </group>

                        <group col="4" string="Incidencias">
                            <field name="t_incidencias" colspan="2" nolabel="1"/>
                        </group>

                        <group col="4" string="Responder a todas">
                            <field name="t_texto_mensaje" nolabel='1' colspan="1" />
                            <button name="enviarMensaje_t" class="oe_edit_only" colspan="1" string="Enviar Mensaje" type="object" />
                            <field name="t_t_interno" colspan="1"/>
                        </group>

                        <group col="4" string="Tareas">
                            <field name="t_tareas" colspan="2" nolabel="1"/>
                        </group>
                                  
                    <!--</sheet>-->
                </form>                
            </field>
        </record>
        
        

    </data>
</odoo>