odoo_dev 开发培训作业:图书管理系统
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

89 Zeilen
4.6KB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="library_checkout_kanban" model="ir.ui.view">
  4. <field name="model">library.checkout</field>
  5. <field name="arch" type="xml">
  6. <kanban default_group_by="stage_id" class="o_kanban_small_column">
  7. <!-- Fields -->
  8. <field name="stage_id" />
  9. <field name="id" />
  10. <field name="color" />
  11. <field name="kanban_state" />
  12. <field name="priority" />
  13. <field name="message_partner_ids" />
  14. <!-- Optional progress bar -->
  15. <progressbar
  16. field="kanban_state"
  17. colors='{"done": "success", "blocked": "danger"}' />
  18. <!-- Templates with HTML snippets to use -->
  19. <templates>
  20. <t t-name="kanban-box">
  21. <!-- Set the Kanban Card color -->
  22. <div t-attf-class="
  23. oe_kanban_color_#{kanban_getcolor(record.color.raw_value)}
  24. oe_kanban_global_click">
  25. <div class="o_dropdown_kanban dropdown">
  26. <a class="dropdown-toggle btn"
  27. data-toggle="dropdown" role="button"
  28. aria-label="Dropdown menu"
  29. title="Dropdown menu"
  30. href="#">
  31. <span class="fa fa-ellipsis-v" />
  32. </a>
  33. <div class="dropdown-menu" role="menu">
  34. <!-- Edit and Delete actions, if available: -->
  35. <t t-if="widget.editable">
  36. <a role="menuitem" type="edit" class="dropdown-item">Edit</a>
  37. </t>
  38. <t t-if="widget.deletable">
  39. <a role="menuitem" type="delete" class="dropdown-item">Delete</a>
  40. </t>
  41. <!-- Color picker option -->
  42. <ul class="oe_kanban_colorpicker" data-field="color" />
  43. </div>
  44. </div>
  45. <!-- Content elements and fields go here... -->
  46. <div class="oe_kanban_body">
  47. <div>
  48. <strong>
  49. <a type="open"><field name="member_id" /></a>
  50. </strong>
  51. </div>
  52. <ul>
  53. <li><field name="user_id" /></li>
  54. <li><field name="request_date" /></li>
  55. </ul>
  56. </div>
  57. <div class="o_kanban_record_bottom">
  58. <div class="oe_kanban_bottom_left">
  59. <!-- Left hand footer... -->
  60. <field name="priority" widget="priority" />
  61. <field name="activity_ids" widget="kanban_activity" />
  62. </div>
  63. <!-- Right hand footer... -->
  64. <div class="oe_kanban_bottom_right">
  65. <field name="kanban_state"
  66. widget="kanban_state_selection" />
  67. <img t-att-src="kanban_image(
  68. 'library.checkout',
  69. 'member_image',
  70. record.id.raw_value)"
  71. t-att-title="record.member_id.value"
  72. t-att-alt="record.member_id.value"
  73. width="24"
  74. height="24"
  75. class="oe_kanban_avatar"
  76. />
  77. </div>
  78. </div>
  79. <div class="oe_clear" />
  80. </div>
  81. </t>
  82. </templates>
  83. </kanban>
  84. </field>
  85. </record>
  86. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1