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.

160 lines
7.0KB

  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_odoo_module_search" model="ir.ui.view">
  9. <field name="model">odoo.module</field>
  10. <field name="arch" type="xml">
  11. <search>
  12. <field name="name" />
  13. <field name="technical_name" />
  14. <field name="author_ids" />
  15. <field name="organization_serie_ids" />
  16. <field name="description_rst" />
  17. <filter
  18. name="filter_with_version"
  19. string="With Version"
  20. domain="[('module_version_qty', '!=', 0)]"
  21. />
  22. </search>
  23. </field>
  24. </record>
  25. <record id="view_odoo_module_tree" model="ir.ui.view">
  26. <field name="model">odoo.module</field>
  27. <field name="arch" type="xml">
  28. <tree decoration-muted="module_version_qty == 0">
  29. <field name="technical_name" />
  30. <field name="name" />
  31. <field name="organization_serie_ids_description" />
  32. <field name="author_ids_description" />
  33. <field name="module_version_qty" />
  34. </tree>
  35. </field>
  36. </record>
  37. <record id="view_odoo_module_form" model="ir.ui.view">
  38. <field name="model">odoo.module</field>
  39. <field name="arch" type="xml">
  40. <form>
  41. <sheet>
  42. <div class="oe_button_box" name="button_box">
  43. <button
  44. type="object"
  45. name="action_open"
  46. class="oe_stat_button"
  47. icon="fa-cube"
  48. attrs="{'invisible': [('module_version_qty', '=', False)]}"
  49. context="{'xml_id': 'action_odoo_module_version', 'field_name': 'module_id'}"
  50. >
  51. <field
  52. name="module_version_qty"
  53. string="Versions"
  54. widget="statinfo"
  55. />
  56. </button>
  57. <button
  58. type="object"
  59. name="action_open"
  60. class="oe_stat_button"
  61. icon="fa-arrows-v"
  62. attrs="{'invisible': [('dependence_module_version_qty', '=', False)]}"
  63. context="{'xml_id': 'action_odoo_module_version', 'field_name': 'dependency_module_ids'}"
  64. >
  65. <field
  66. name="dependence_module_version_qty"
  67. string="Dependencies"
  68. widget="statinfo"
  69. />
  70. </button>
  71. </div>
  72. <field name="image" widget="image" class="oe_avatar" />
  73. <div class="oe_title">
  74. <h1>
  75. <field name="name" />
  76. </h1>
  77. <h2>
  78. <field name="technical_name" />
  79. </h2>
  80. </div>
  81. <group cols="4">
  82. <field
  83. name="organization_serie_ids"
  84. widget="many2many_tags"
  85. string="Available for"
  86. />
  87. <field name="author_ids" widget="many2many_tags" />
  88. </group>
  89. <notebook>
  90. <page string="Descriptions">
  91. <group col="4">
  92. <field
  93. name="description_rst_html"
  94. colspan="4"
  95. nolabel="1"
  96. class="oe_styling_v8"
  97. />
  98. </group>
  99. </page>
  100. </notebook>
  101. </sheet>
  102. </form>
  103. </field>
  104. </record>
  105. <record id="view_odoo_module_kanban" model="ir.ui.view">
  106. <field name="model">odoo.module</field>
  107. <field name="arch" type="xml">
  108. <kanban>
  109. <field name="image" />
  110. <field name="name" />
  111. <field name="technical_name" />
  112. <field name="organization_serie_ids_description" />
  113. <templates>
  114. <t t-name="kanban-box">
  115. <div class="oe_module_vignette oe_kanban_global_click">
  116. <t t-if="record.image.raw_value">
  117. <img
  118. t-att-src="'data:image/png;base64,'+record.image.raw_value"
  119. class="oe_module_icon"
  120. t-att-alt="record.name.raw_value"
  121. />
  122. </t>
  123. <t t-if="!record.image.raw_value">
  124. <img
  125. t-att-src='_s + "/github_connector_odoo/static/src/img/default_image_module.png"'
  126. class="oe_module_icon"
  127. t-att-alt="record.name.raw_value"
  128. />
  129. </t>
  130. <div class="oe_module_desc">
  131. <h4>
  132. <field name="name" />
  133. </h4>
  134. <p class="oe_module_name">
  135. <t t-if="record.technical_name.raw_value">
  136. <field name="technical_name" />
  137. <br />
  138. </t>
  139. <span
  140. class="badge"
  141. t-if="record.organization_serie_ids_description.raw_value"
  142. >
  143. <t
  144. t-esc="record.organization_serie_ids_description.value"
  145. />
  146. </span>
  147. <br />
  148. <i>
  149. <field name="author_ids_description" />
  150. </i>
  151. </p>
  152. </div>
  153. </div>
  154. </t>
  155. </templates>
  156. </kanban>
  157. </field>
  158. </record>
  159. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1