You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
5.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="dashboard_tile_tile_tree_view">
  5. <field name="name">tile.tile.tree</field>
  6. <field name="model">tile.tile</field>
  7. <field name="arch" type="xml">
  8. <tree string="Dashboard tiles">
  9. <field name="name"/>
  10. <field name="domain"/>
  11. <field name="model_id"/>
  12. <field name="action_id"/>
  13. <field name="count"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record model="ir.ui.view" id="dashboard_tile_tile_form_view">
  18. <field name="name">tile.tile.form</field>
  19. <field name="model">tile.tile</field>
  20. <field name="arch" type="xml">
  21. <form string="Dashboard tiles" version="7.0">
  22. <group>
  23. <field name="name"/>
  24. <field name="domain"/>
  25. <field name="model_id"/>
  26. <field name="user_id"/>
  27. <field name="action_id"/>
  28. </group>
  29. </form>
  30. </field>
  31. </record>
  32. <!-- CRM Lead Kanban View -->
  33. <record model="ir.ui.view" id="dashboard_tile_tile_kanban_view">
  34. <field name="name">tile.tile.kanban</field>
  35. <field name="model">tile.tile</field>
  36. <field name="arch" type="xml">
  37. <kanban edit="false" create="false">
  38. <field name="name"/>
  39. <field name="domain"/>
  40. <field name="model_id"/>
  41. <field name="action_id"/>
  42. <field name="count"/>
  43. <field name="color"/>
  44. <templates>
  45. <t t-name="kanban-box">
  46. <div t-attf-class="oe_tile_color_#{kanban_getcolor(record.color.raw_value)} oe_dashbaord_tile oe_kanban_global_click" >
  47. <!-- FIXME: icon is hidden and edit not working if you have no form view
  48. need more JS in the future -->
  49. <div class="oe_dropdown_toggle oe_dropdown_kanban">
  50. <span class="oe_e">í</span>
  51. <ul class="oe_dropdown_menu">
  52. <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
  53. <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
  54. <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
  55. </ul>
  56. </div>
  57. <div class="oe_kanban_content">
  58. <a type="object" name="open_link" args="[]">
  59. <div class="tile_label">
  60. <b><field name="name"/></b>
  61. </div>
  62. <div style="padding-left: 0.5em; height: 115px;">
  63. </div>
  64. <div class="tile_count">
  65. <span><field name="count"/></span>
  66. </div>
  67. </a>
  68. </div>
  69. <div class="oe_clear"></div>
  70. </div>
  71. </t>
  72. </templates>
  73. </kanban>
  74. </field>
  75. </record>
  76. <record model="ir.actions.act_window" id="action_tree_dashboard_tile">
  77. <field name="name">Dashboard</field>
  78. <field name="res_model">tile.tile</field>
  79. <field name="view_type">form</field>
  80. <field name="view_mode">tree,kanban,form</field>
  81. <field name="view_id" ref="dashboard_tile_tile_tree_view"/>
  82. </record>
  83. <menuitem id="menue_dashboard_tile"
  84. name="Dashboard Tile" parent="base.next_id_2"
  85. action="action_tree_dashboard_tile" sequence="50"/>
  86. <record model="ir.actions.act_window" id="action_kanban_dashboard_tile">
  87. <field name="name">Dashboard</field>
  88. <field name="res_model">tile.tile</field>
  89. <field name="view_type">form</field>
  90. <field name="view_mode">kanban</field>
  91. <field name="domain">['|',('user_id','=',False),('user_id','=',uid)]</field>
  92. <field name="view_id" ref="dashboard_tile_tile_tree_view"/>
  93. </record>
  94. <record id="mail_dashboard" model="ir.ui.menu">
  95. <field name="name">Dashboard</field>
  96. <field name="sequence" eval="9"/>
  97. <field name="action" ref="action_kanban_dashboard_tile"/>
  98. <field name="parent_id" ref="mail.mail_feeds"/>
  99. </record>
  100. </data>
  101. </openerp>