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

      <!-- explicit list view definition -->
      <record model="ir.ui.view" id="hgt_transportar.trans_transportista_list">
        <field name="name">Transportista</field>
        <field name="model">trans.transportista</field>
        <field name="arch" type="xml">
          <tree>
            <field name="trans_nombre"/>
            <field name="trans_razon_social"/>
            <field name="trans_tipo_ent"/>
            <field name="trans_telefono"/>
            <field name="trans_tipo"/>
          </tree>
        </field>
      </record>

      <record model="ir.ui.view" id="hgt_transportar.trans_transportista_form">
        <field name="name">Transportista</field>
        <field name="model">trans.transportista</field>
        <field name="arch" type="xml">
          <form>
            <header>
            </header>
            <sheet>
              <group col="2" string="Datos generales">
                <field name="trans_nombre" colspan="2"/>
                <field name="trans_razon_social" colspan="2" required="1"/>
                <field name="trans_cuit" colspan="2" required="1"/>
              </group>
              <group col="2">
                <field name="trans_telefono" colspan="2" required="1"/>
                <field name="trans_email" colspan="2"/>
                <field name="trans_pagina_web" colspan="2"/>
                <field name="trans_logo" colspan="2"/>
              </group>
              <group col="2">
                <field name="trans_tipo_ent" colspan="2" required="1"/>
                <field name="trans_tipo" colspan="2" />
                <field name="trans_restriccion_elem" colspan="2"/>
                <!-- <field name="trans_pto_retiro" colspan="2" /> -->
                <field name="trans_posee_ayu" colspan="2"/>
                <field name="trans_observ" colspan="2"/>
              </group>
              <group col="2" string="Datos de usuario">
                <field name="trans_categoria" colspan="2"/>
              </group>
            </sheet>
          </form>
        </field>
      </record>

      <record model="ir.ui.view" id="hgt_transportar.trans_transportista_search">
        <field name="name">Transportista</field>
        <field name="model">trans.transportista</field>
        <field name="arch" type="xml">
          <search string="Busqueda de transportista">
            <field name="trans_nombre"/>
            <field name="trans_razon_social"/>
            <field name="trans_tipo_ent"/>
            <field name="trans_tipo"/>
          </search>
        </field>
      </record>

      <!-- actions opening views on models -->
      <record model="ir.actions.act_window" id="hgt_transportar.trans_transportista_action_window">
        <field name="name">Transportista</field>
        <field name="res_model">trans.transportista</field>
        <field name="view_mode">tree,form</field>
      </record>

    </data>
</odoo>