product_service_brand.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- actions -->
  5. <act_window
  6. id="action_open_product_service"
  7. name="Car Products"
  8. res_model="product.service"
  9. view_type="form"
  10. view_mode="tree,form"
  11. domain="[('product_service_brand_id', '=', active_id)]"/>
  12. <act_window
  13. id="action_open_single_product_service"
  14. name="Car Brand"
  15. res_model="product.service"
  16. view_type="form"
  17. view_mode="tree,form"
  18. target="current"
  19. domain="[('product_service_ids', 'in', active_id)]"/>
  20. <!-- form view -->
  21. <record model="ir.ui.view" id="product_service_brand_form">
  22. <field name="name">product_service_brand_form</field>
  23. <field name="model">product.service.brand</field>
  24. <field name="arch" type="xml">
  25. <form string="Car Brand" version="7.0">
  26. <sheet>
  27. <field name="logo" widget="image" class="oe_avatar oe_left"/>
  28. <div class="oe_title">
  29. <div class="oe_edit_only">
  30. <label for="name" string="Marca"/>
  31. </div>
  32. <h1>
  33. <field name="name"/>
  34. </h1>
  35. </div>
  36. <div class="oe_right oe_button_box">
  37. <button
  38. class="oe_inline oe_stat_button"
  39. type="action"
  40. name="%(action_open_product_service)d"
  41. icon="fa-cubes">
  42. <field name="product_service_count" string="Productos" widget="statinfo" />
  43. </button>
  44. </div>
  45. <group string="Descripción">
  46. <field name="description" nolabel="1"/>
  47. </group>
  48. </sheet>
  49. </form>
  50. </field>
  51. </record>
  52. <!-- Tree -->
  53. <record model="ir.ui.view" id="product_service_brand_tree">
  54. <field name="name">product.service.brand.tree</field>
  55. <field name="model">product.service.brand</field>
  56. <field name="arch" type="xml">
  57. <tree string="Marca">
  58. <field name="name" string="Nombre"/>
  59. <field name="description" string="Descripción"/>
  60. </tree>
  61. </field>
  62. </record>
  63. <!-- action -->
  64. <record model="ir.actions.act_window" id="product_service_brand_action">
  65. <field name="name">Marcas</field>
  66. <field name="res_model">product.service.brand</field>
  67. <field name="view_type">form</field>
  68. <field name="view_mode">tree,form</field>
  69. </record>
  70. <!-- menu -->
  71. <menuitem
  72. name="Marcas" id="product_service_brand_all_menu"
  73. action="product_service_brand_action" parent="project_config_parent_menu"/>
  74. </data>
  75. </openerp>