|
- <?xml version="1.0" encoding="utf-8" ?>
- <!--
- Copyright (C) 2016-Today: Odoo Community Association (OCA)
- @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
- License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
- -->
- <odoo>
- <record id="view_odoo_module_search" model="ir.ui.view">
- <field name="model">odoo.module</field>
- <field name="arch" type="xml">
- <search>
- <field name="name" />
- <field name="technical_name" />
- <field name="author_ids" />
- <field name="organization_serie_ids" />
- <field name="description_rst" />
- <filter
- name="filter_with_version"
- string="With Version"
- domain="[('module_version_qty', '!=', 0)]"
- />
- </search>
- </field>
- </record>
- <record id="view_odoo_module_tree" model="ir.ui.view">
- <field name="model">odoo.module</field>
- <field name="arch" type="xml">
- <tree decoration-muted="module_version_qty == 0">
- <field name="technical_name" />
- <field name="name" />
- <field name="organization_serie_ids_description" />
- <field name="author_ids_description" />
- <field name="module_version_qty" />
- </tree>
- </field>
- </record>
- <record id="view_odoo_module_form" model="ir.ui.view">
- <field name="model">odoo.module</field>
- <field name="arch" type="xml">
- <form>
- <sheet>
- <div class="oe_button_box" name="button_box">
- <button
- type="object"
- name="action_open"
- class="oe_stat_button"
- icon="fa-cube"
- attrs="{'invisible': [('module_version_qty', '=', False)]}"
- context="{'xml_id': 'action_odoo_module_version', 'field_name': 'module_id'}"
- >
- <field
- name="module_version_qty"
- string="Versions"
- widget="statinfo"
- />
- </button>
- <button
- type="object"
- name="action_open"
- class="oe_stat_button"
- icon="fa-arrows-v"
- attrs="{'invisible': [('dependence_module_version_qty', '=', False)]}"
- context="{'xml_id': 'action_odoo_module_version', 'field_name': 'dependency_module_ids'}"
- >
- <field
- name="dependence_module_version_qty"
- string="Dependencies"
- widget="statinfo"
- />
- </button>
- </div>
- <field name="image" widget="image" class="oe_avatar" />
- <div class="oe_title">
- <h1>
- <field name="name" />
- </h1>
- <h2>
- <field name="technical_name" />
- </h2>
- </div>
- <group cols="4">
- <field
- name="organization_serie_ids"
- widget="many2many_tags"
- string="Available for"
- />
- <field name="author_ids" widget="many2many_tags" />
- </group>
- <notebook>
- <page string="Descriptions">
- <group col="4">
- <field
- name="description_rst_html"
- colspan="4"
- nolabel="1"
- class="oe_styling_v8"
- />
- </group>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record id="view_odoo_module_kanban" model="ir.ui.view">
- <field name="model">odoo.module</field>
- <field name="arch" type="xml">
- <kanban>
- <field name="image" />
- <field name="name" />
- <field name="technical_name" />
- <field name="organization_serie_ids_description" />
- <templates>
- <t t-name="kanban-box">
- <div class="oe_module_vignette oe_kanban_global_click">
- <t t-if="record.image.raw_value">
- <img
- t-att-src="'data:image/png;base64,'+record.image.raw_value"
- class="oe_module_icon"
- t-att-alt="record.name.raw_value"
- />
- </t>
- <t t-if="!record.image.raw_value">
- <img
- t-att-src='_s + "/github_connector_odoo/static/src/img/default_image_module.png"'
- class="oe_module_icon"
- t-att-alt="record.name.raw_value"
- />
- </t>
- <div class="oe_module_desc">
- <h4>
- <field name="name" />
- </h4>
- <p class="oe_module_name">
- <t t-if="record.technical_name.raw_value">
- <field name="technical_name" />
- <br />
- </t>
- <span
- class="badge"
- t-if="record.organization_serie_ids_description.raw_value"
- >
- <t
- t-esc="record.organization_serie_ids_description.value"
- />
- </span>
- <br />
- <i>
- <field name="author_ids_description" />
- </i>
- </p>
- </div>
- </div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
- </odoo>
|