|
- <?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_github_organization_search" model="ir.ui.view">
- <field name="model">github.organization</field>
- <field name="arch" type="xml">
- <search>
- <field
- name="name"
- string="Name or Github Name"
- filter_domain="['|', ('name', 'ilike', self), ('github_login', 'ilike', self)]"
- />
- </search>
- </field>
- </record>
- <record id="view_github_organization_tree" model="ir.ui.view">
- <field name="model">github.organization</field>
- <field name="arch" type="xml">
- <tree>
- <field name="github_login" />
- <field name="name" />
- <field name="member_qty" />
- <field name="repository_qty" />
- <field name="team_qty" />
- </tree>
- </field>
- </record>
- <record id="view_github_organization_form" model="ir.ui.view">
- <field name="model">github.organization</field>
- <field name="arch" type="xml">
- <form>
- <header>
- <button
- name="button_sync_member"
- type="object"
- string="Members Sync."
- class="btn btn-default"
- icon="fa-chevron-right"
- groups="github_connector.group_github_connector_manager"
- />
- <button
- name="button_sync_repository"
- type="object"
- string="Repositories Sync."
- class="btn btn-default"
- icon="fa-chevron-right"
- groups="github_connector.group_github_connector_manager"
- />
- <button
- name="button_sync_team"
- type="object"
- string="Teams Sync."
- class="btn btn-default"
- icon="fa-chevron-right"
- groups="github_connector.group_github_connector_manager"
- />
- </header>
- <sheet>
- <div class="oe_button_box" name="button_box">
- <button
- type="object"
- name="action_github_repository"
- class="oe_stat_button"
- icon="fa-folder-o"
- attrs="{'invisible': [('repository_qty', '=', False)]}"
- >
- <div class="o_stat_info">
- <field name="repository_qty" class="o_stat_value" />
- <span
- class="o_stat_text"
- attrs="{'invisible': [('repository_qty', '<', 2)]}"
- > Repositories</span>
- <span
- class="o_stat_text"
- attrs="{'invisible': [('repository_qty', '>', 1)]}"
- > Repository</span>
- </div>
- </button>
- <button
- type="object"
- name="action_github_team"
- class="oe_stat_button"
- icon="fa-users"
- attrs="{'invisible': [('team_qty', '=', False)]}"
- >
- <div class="o_stat_info">
- <field name="team_qty" class="o_stat_value" />
- <span
- class="o_stat_text"
- attrs="{'invisible': [('team_qty', '<', 2)]}"
- > Teams</span>
- <span
- class="o_stat_text"
- attrs="{'invisible': [('team_qty', '>', 1)]}"
- > Team</span>
- </div>
- </button>
- <button
- type="object"
- name="action_res_partner"
- class="oe_stat_button"
- icon="fa-user"
- attrs="{'invisible': [('member_qty', '=', False)]}"
- >
- <div class="o_stat_info">
- <field name="member_qty" class="o_stat_value" />
- <span
- class="o_stat_text"
- attrs="{'invisible': [('member_qty', '<', 2)]}"
- > Members</span>
- <span
- class="o_stat_text"
- attrs="{'invisible': [('member_qty', '>', 1)]}"
- > Member</span>
- </div>
- </button>
- </div>
- <field name="image" widget="image" class="oe_avatar" />
- <div class="oe_title">
- <h1>
- <field name="name" />
- </h1>
- <h3 class="oe_fade">
- <field name="description" class="oe_inline" />
- </h3>
- </div>
- <div class="oe_clear" />
- <group col="4">
- <field name="email" widget="email" />
- <field name="website_url" widget="url" />
- <field name="location" />
- </group>
- <notebook>
- <page name="extra_setting" string="Settings">
- <group cols="4" string="Ignored Repositories">
- <field
- name="ignored_repository_names"
- colspan="4"
- nolabel="1"
- />
- </group>
- <group
- name="external_services"
- cols="4"
- string="External Services"
- >
- <field name="coverage_url_pattern" />
- <field name="ci_url_pattern" />
- </group>
- </page>
- <page string="Organization Series">
- <field
- name="organization_serie_ids"
- colspan="4"
- nolabel="1"
- >
- <tree string="organization_serie_ids" editable="bottom">
- <field name="sequence" />
- <field name="name" />
- </tree>
- </field>
- </page>
- <page name="github" string="Github">
- <group col="4">
- <field name="github_url" widget="url" colspan="4" />
- <field name="github_id_external" />
- <field name="github_login" />
- <field name="github_create_date" />
- <field name="github_write_date" />
- <field name="github_last_sync_date" />
- <button
- name="button_update_from_github_light"
- type="object"
- string="Light Sync"
- class="btn btn-default"
- icon="fa-angle-right"
- groups="github_connector.group_github_connector_manager"
- />
- <button
- name="button_update_from_github_full"
- type="object"
- string="Full Sync"
- class="btn btn-default"
- icon="fa-angle-double-right"
- groups="github_connector.group_github_connector_manager"
- />
- </group>
- </page>
- <page name="code_analysis" string="Code Analysis">
- <label for="analysis_rule_ids" />
- <field name="analysis_rule_ids" colspan="4" />
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record id="view_github_organization_kanban" model="ir.ui.view">
- <field name="model">github.organization</field>
- <field name="arch" type="xml">
- <kanban>
- <field name="id" />
- <field name="name" />
- <field name="github_login" />
- <field name="github_url" />
- <field name="website_url" />
- <field name="repository_qty" />
- <field name="member_qty" />
- <field name="team_qty" />
- <field name="email" />
- <field name="location" />
- <templates>
- <t t-name="kanban-box">
- <div class="oe_module_vignette oe_kanban_global_click">
- <div class="o_kanban_image">
- <img
- t-att-alt="record.name.value"
- t-att-src="kanban_image('github.organization', 'image', record.id.raw_value)"
- />
- </div>
- <div class="oe_kanban_details">
- <h3>
- <field name="name" />
- </h3>
- <h4>
- <field name="github_login" />
- </h4>
- <p class="oe_module_name">
- <t t-if="record.website_url.raw_value">
- <a
- target="_blank"
- t-att-href="record.website_url.value"
- >
- <field name="website_url" />
- </a>
- </t>
- <br />
- <t t-if="record.email.raw_value">
- <field name="email" />
- </t>
- <br />
- <t t-if="record.location.raw_value">
- <field name="location" />
- </t>
- <br />
- </p>
- <a target="_blank" t-att-href="record.github_url.value">
- <span class="badge">
- <i class="fa fa-fw fa-github-alt" />
- </span>
- </a>
- <span class="badge">
- <i class="fa fa-fw fa-folder-o" />
- <t t-esc="record.repository_qty.value" />
- </span>
- <span class="badge">
- <i class="fa fa-fw fa-users" />
- <t t-esc="record.team_qty.value" />
- </span>
- <span class="badge">
- <i class="fa fa-fw fa-user" />
- <t t-esc="record.member_qty.value" />
- </span>
- </div>
- </div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
- </odoo>
|