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.

114 lines
4.7KB

  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_license_search" model="ir.ui.view">
  9. <field name="model">odoo.license</field>
  10. <field name="arch" type="xml">
  11. <search>
  12. <field name="name" />
  13. </search>
  14. </field>
  15. </record>
  16. <record id="view_odoo_license_tree" model="ir.ui.view">
  17. <field name="model">odoo.license</field>
  18. <field name="arch" type="xml">
  19. <tree>
  20. <field name="name" />
  21. <field name="module_version_qty" sum="Total" />
  22. </tree>
  23. </field>
  24. </record>
  25. <record id="view_odoo_license_form" model="ir.ui.view">
  26. <field name="model">odoo.license</field>
  27. <field name="arch" type="xml">
  28. <form>
  29. <sheet>
  30. <div class="oe_button_box" name="button_box">
  31. <button
  32. type="object"
  33. name="action_open"
  34. class="oe_stat_button"
  35. icon="fa-cube"
  36. attrs="{'invisible': [('module_version_qty', '=', False)]}"
  37. context="{'xml_id': 'action_odoo_module_version', 'field_name': 'license_id'}"
  38. >
  39. <field
  40. name="module_version_qty"
  41. string="Modules"
  42. widget="statinfo"
  43. />
  44. </button>
  45. </div>
  46. <field name="active" invisible="1" />
  47. <widget
  48. name="web_ribbon"
  49. title="Archived"
  50. bg_color="bg-danger"
  51. attrs="{'invisible': [('active', '=', True)]}"
  52. />
  53. <field name="image" widget="image" class="oe_avatar" />
  54. <div class="oe_title">
  55. <h1>
  56. <field name="name" />
  57. </h1>
  58. </div>
  59. <notebook>
  60. <page string="Information">
  61. <group>
  62. <field name="website" widget="url" />
  63. </group>
  64. <group string="Description">
  65. <field name="description" nolabel="1" />
  66. </group>
  67. </page>
  68. </notebook>
  69. </sheet>
  70. </form>
  71. </field>
  72. </record>
  73. <record id="view_odoo_license_kanban" model="ir.ui.view">
  74. <field name="model">odoo.license</field>
  75. <field name="arch" type="xml">
  76. <kanban>
  77. <field name="image" />
  78. <field name="name" />
  79. <field name="website" />
  80. <field name="module_version_qty" />
  81. <templates>
  82. <t t-name="kanban-box">
  83. <div class="oe_module_vignette oe_kanban_global_click">
  84. <t t-if="record.image.raw_value">
  85. <img
  86. t-att-src="'data:image/png;base64,'+record.image.raw_value"
  87. class="oe_module_icon"
  88. t-att-alt="record.name.raw_value"
  89. />
  90. </t>
  91. <div class="oe_module_desc">
  92. <h3>
  93. <field name="name" />
  94. </h3>
  95. <p class="oe_module_name">
  96. <t t-if="record.website.raw_value">
  97. <field name="website" />
  98. </t>
  99. <t t-if="!record.website.raw_value">
  100. <br />
  101. </t>
  102. </p>
  103. <span class="badge">
  104. <t t-esc="record.module_version_qty.value" />
  105. </span>
  106. </div>
  107. </div>
  108. </t>
  109. </templates>
  110. </kanban>
  111. </field>
  112. </record>
  113. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1