car_services_view.xml 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_car_form" model="ir.ui.view">
  5. <field name="name">view.car.form</field>
  6. <field name="model">car.service</field>
  7. <field name="arch" type="xml">
  8. <form string="Vehiculo">
  9. <sheet>
  10. <field name="logo" widget="image" class="oe_avatar oe_left"/>
  11. <div class="oe_title">
  12. <h2>
  13. <field name="car_brand_id" placeholder="Marca" required="1"/>
  14. </h2>
  15. <h2>
  16. <field name="model" placeholder="Modelo" required="1"/>
  17. </h2>
  18. <h2>
  19. <field name="number" placeholder="Número de chapa" required="1"/>
  20. </h2>
  21. </div>
  22. <notebook>
  23. <page string="Configuración">
  24. <group>
  25. <group string="Información legal">
  26. <field name="partner_id" string="Propietario" required="1" domain="[('customer','=',True)]"/>
  27. <field name="policy" string="¿Tiene seguro?"/>
  28. <field name="policy_number" string="Número de poliza" attrs="{'invisible': [('policy','=', False)],'required': [('policy','=', True)]}" domain="[('is_insurer','=',True)]"/>
  29. <field name="secure_id" string="Aseguradora" attrs="{'invisible': [('policy','=', False)],'required': [('policy','=', True)]}" domain="[('is_insurer','=',True)]"/>
  30. <field name="agent_id" string="Agente" attrs="{'invisible': [('policy','=', False)],'required': [('policy','=', True)]}" domain="[('is_agent','=', True),('parent_id','=', secure_id)]"/>
  31. <field name="car_value" string="Valor del vehiculo"/>
  32. </group>
  33. <group string="Información técnica">
  34. <field name="odometer" string="Odometro"/>
  35. <field name="transmission" string="Tipo de transmisión"/>
  36. <field name="fuel_type" string="Tipo de combustible"/>
  37. </group>
  38. </group>
  39. <group>
  40. <group string="Descripción">
  41. <field name="description" nolabel="1"/>
  42. </group>
  43. <group string="Información Adicional">
  44. <field name="seats" string="Número de asientos"/>
  45. <field name="doors" string="Número de puertas"/>
  46. <field name="year" string="Año"/>
  47. <field name="color" string="Color"/>
  48. </group>
  49. </group>
  50. </page>
  51. </notebook>
  52. </sheet>
  53. </form>
  54. </field>
  55. </record>
  56. <record id="view_car_tree" model="ir.ui.view">
  57. <field name="name">view.car.tree</field>
  58. <field name="model">car.service</field>
  59. <field name="arch" type="xml">
  60. <tree string="Vehiculo">
  61. <field name="name"/>
  62. <field name="partner_id"/>
  63. <field name="car_value"/>
  64. </tree>
  65. </field>
  66. </record>
  67. <record model="ir.actions.act_window" id="action_car">
  68. <field name="name">Vehiculos</field>
  69. <field name="res_model">car.service</field>
  70. <field name="view_type">form</field>
  71. <field name="view_mode">tree,form</field>
  72. </record>
  73. <menuitem
  74. name="Registro de vehiculos"
  75. id="menu_car"
  76. action="action_car"
  77. parent="eiru_base_for_services.menu_worksheet_config"/>
  78. </data>
  79. </openerp>