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

        <record id="action_incidenciasconfig_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.coniguracion_incidencias</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>
        
        <record id="view_incidenciasconfig_tree" model="ir.ui.view">
            <field name="name">Incidencias</field>
            <field name="model">hgt.coniguracion_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="name" />
                    <field name="habilitado" widget="Radio" attrs="{'readonly': True}" />
                    <button type="object" name="confirm" string="Confirm" class="oe_highlight"/>
                </tree>                
            </field>
        </record>

        <record id="view_incidenciasconfig_form" model="ir.ui.view">
            <field name="name">Incidencias</field>
            <field name="model">hgt.coniguracion_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 name="name" />
                            <field name="habilitado" widget="boolean_toggle" />
                            <field name="dispacher" />
                            <field name="url_ost" />
                        </group>
                    </sheet>
                </form>                
            </field>
        </record>
        
        

    </data>
</odoo>