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.

125 lines
5.2KB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. Copyright (C) 2016-Today: Odoo Community Association (OCA)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="view_github_team_partner_search" model="ir.ui.view">
  9. <field name="model">github.team.partner</field>
  10. <field name="arch" type="xml">
  11. <search>
  12. <field name="team_id" />
  13. <field name="partner_id" />
  14. <field name="role" />
  15. </search>
  16. </field>
  17. </record>
  18. <record id="view_github_team_partner_tree" model="ir.ui.view">
  19. <field name="model">github.team.partner</field>
  20. <field name="arch" type="xml">
  21. <tree decoration-warning="role == 'member'">
  22. <field
  23. name="team_id"
  24. invisible="context.get('search_default_team_id')"
  25. />
  26. <field
  27. name="partner_id"
  28. invisible="context.get('search_default_partner_id')"
  29. />
  30. <field name="role" />
  31. </tree>
  32. </field>
  33. </record>
  34. <record id="view_github_team_partner_form" model="ir.ui.view">
  35. <field name="model">github.team.partner</field>
  36. <field name="arch" type="xml">
  37. <form>
  38. <sheet>
  39. <div class="oe_button_box" name="button_box" />
  40. <div class="oe_title">
  41. <h1>
  42. <field name="partner_id" />
  43. </h1>
  44. <h2>
  45. <field name="team_id" />
  46. </h2>
  47. </div>
  48. <field name="role" />
  49. </sheet>
  50. </form>
  51. </field>
  52. </record>
  53. <record id="view_github_team_partner_from_team_kanban" model="ir.ui.view">
  54. <field name="name">github.team.partner.kanban</field>
  55. <field name="model">github.team.partner</field>
  56. <field name="arch" type="xml">
  57. <kanban>
  58. <field name="partner_id" />
  59. <field name="role" />
  60. <templates>
  61. <t t-name="kanban-box">
  62. <div class="oe_kanban_global_click">
  63. <div class="o_kanban_image">
  64. <img
  65. alt="Avatar"
  66. t-att-src="kanban_image('res.partner', 'image_128', record.partner_id.raw_value)"
  67. />
  68. </div>
  69. <div class="oe_kanban_details">
  70. <h3>
  71. <field name="partner_id" />
  72. </h3>
  73. <t t-if="record.role.raw_value == 'member'">
  74. <span class="badge">
  75. <i class="fa fa-fw fa-user" />
  76. <t t-esc="record.role.value" />
  77. </span>
  78. </t>
  79. <t t-if="record.role.raw_value == 'maintainer'">
  80. <span class="badge">
  81. <i class="fa fa-fw fa-cog" />
  82. <t t-esc="record.role.value" />
  83. </span>
  84. </t>
  85. </div>
  86. </div>
  87. </t>
  88. </templates>
  89. </kanban>
  90. </field>
  91. </record>
  92. <record id="view_github_team_partner_from_partner_kanban" model="ir.ui.view">
  93. <field name="model">github.team.partner</field>
  94. <field name="arch" type="xml">
  95. <kanban>
  96. <field name="team_id" />
  97. <field name="role" />
  98. <templates>
  99. <t t-name="kanban-box">
  100. <div class="o_res_partner_kanban oe_kanban_global_click">
  101. <div class="oe_module_desc">
  102. <h3>
  103. <field name="team_id" />
  104. </h3>
  105. <t t-if="record.role.raw_value == 'member'">
  106. <span class="badge">
  107. <i class="fa fa-fw fa-user" />
  108. <t t-esc="record.role.value" />
  109. </span>
  110. </t>
  111. <t t-if="record.role.raw_value == 'maintainer'">
  112. <span class="badge">
  113. <i class="fa fa-fw fa-cog" />
  114. <t t-esc="record.role.value" />
  115. </span>
  116. </t>
  117. </div>
  118. </div>
  119. </t>
  120. </templates>
  121. </kanban>
  122. </field>
  123. </record>
  124. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1