car_brand_view.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <openerp>
  2. <data>
  3. <record id="product_car_search_form_view" model="ir.ui.view">
  4. <field name="name">car.brand.search.form</field>
  5. <field name="model">car.brand</field>
  6. <field name="arch" type="xml">
  7. <search string="Car Brand">
  8. <field name="name"/>
  9. </search>
  10. </field>
  11. </record>
  12. <act_window
  13. id="action_open_brand_cars"
  14. name="Car Products"
  15. res_model="car.service"
  16. view_type="form"
  17. view_mode="tree,form"
  18. domain="[('car_brand_id', '=', active_id)]"/>
  19. <act_window
  20. id="action_open_single_car_brand"
  21. name="Car Brand"
  22. res_model="car.brand"
  23. view_type="form"
  24. view_mode="tree,form"
  25. target="current"
  26. domain="[('car_ids', 'in', active_id)]"/>
  27. <record id="view_car_brand_form" model="ir.ui.view">
  28. <field name="name">car.brand.form</field>
  29. <field name="model">car.brand</field>
  30. <field name="arch" type="xml">
  31. <form string="Car Brand" version="7.0">
  32. <sheet>
  33. <field name="logo" widget="image" class="oe_avatar oe_left"/>
  34. <div class="oe_title">
  35. <div class="oe_edit_only">
  36. <label for="name" string="Marca"/>
  37. </div>
  38. <h1>
  39. <field name="name"/>
  40. </h1>
  41. </div>
  42. <div class="oe_right oe_button_box">
  43. <button
  44. class="oe_inline oe_stat_button"
  45. type="action"
  46. name="%(action_open_brand_cars)d"
  47. icon="fa-cubes">
  48. <field name="car_count" string="Vehiculos" widget="statinfo" />
  49. </button>
  50. </div>
  51. <group string="Descripción">
  52. <field name="description" nolabel="1"/>
  53. </group>
  54. </sheet>
  55. </form>
  56. </field>
  57. </record>
  58. <record id="view_car_brand_tree" model="ir.ui.view">
  59. <field name="name">car.brand.tree</field>
  60. <field name="model">car.brand</field>
  61. <field name="arch" type="xml">
  62. <tree string="car.brand">
  63. <field name="name" string="Marca"/>
  64. <field name="description" string="Descripción"/>
  65. </tree>
  66. </field>
  67. </record>
  68. <record model="ir.actions.act_window" id="action_car_brand">
  69. <field name="name">Marcas</field>
  70. <field name="res_model">car.brand</field>
  71. <field name="view_type">form</field>
  72. <field name="view_mode">tree,form</field>
  73. </record>
  74. <menuitem
  75. name="Marcas de vehiculos"
  76. id="menu_car_brand"
  77. action="action_car_brand"
  78. parent="eiru_base_for_services.menu_worksheet_config"/>
  79. </data>
  80. </openerp>