1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="view_car_form" model="ir.ui.view">
- <field name="name">view.car.form</field>
- <field name="model">car.service</field>
- <field name="arch" type="xml">
- <form string="Vehiculo">
- <sheet>
- <field name="logo" widget="image" class="oe_avatar oe_left"/>
- <div class="oe_title">
- <h2>
- <field name="car_brand_id" placeholder="Marca" required="1"/>
- </h2>
- <h2>
- <field name="model" placeholder="Modelo" required="1"/>
- </h2>
- <h2>
- <field name="number" placeholder="Número de chapa" required="1"/>
- </h2>
- </div>
- <notebook>
- <page string="Configuración">
- <group>
- <group string="Información legal">
- <field name="partner_id" string="Propietario" required="1" domain="[('customer','=',True)]"/>
- <field name="policy" string="¿Tiene seguro?"/>
- <field name="policy_number" string="Número de poliza" attrs="{'invisible': [('policy','=', False)],'required': [('policy','=', True)]}" domain="[('is_insurer','=',True)]"/>
- <field name="secure_id" string="Aseguradora" attrs="{'invisible': [('policy','=', False)],'required': [('policy','=', True)]}" domain="[('is_insurer','=',True)]"/>
- <field name="agent_id" string="Agente" attrs="{'invisible': [('policy','=', False)],'required': [('policy','=', True)]}" domain="[('is_agent','=', True),('parent_id','=', secure_id)]"/>
- <field name="car_value" string="Valor del vehiculo"/>
- </group>
- <group string="Información técnica">
- <field name="odometer" string="Odometro"/>
- <field name="transmission" string="Tipo de transmisión"/>
- <field name="fuel_type" string="Tipo de combustible"/>
- </group>
- </group>
- <group>
- <group string="Descripción">
- <field name="description" nolabel="1"/>
- </group>
- <group string="Información Adicional">
- <field name="seats" string="Número de asientos"/>
- <field name="doors" string="Número de puertas"/>
- <field name="year" string="Año"/>
- <field name="color" string="Color"/>
- </group>
- </group>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record id="view_car_tree" model="ir.ui.view">
- <field name="name">view.car.tree</field>
- <field name="model">car.service</field>
- <field name="arch" type="xml">
- <tree string="Vehiculo">
- <field name="name"/>
- <field name="partner_id"/>
- <field name="car_value"/>
- </tree>
- </field>
- </record>
- <record model="ir.actions.act_window" id="action_car">
- <field name="name">Vehiculos</field>
- <field name="res_model">car.service</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem
- name="Registro de vehiculos"
- id="menu_car"
- action="action_car"
- parent="eiru_base_for_services.menu_worksheet_config"/>
- </data>
- </openerp>
|