|
- <?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_team_partner_search" model="ir.ui.view">
- <field name="model">github.team.partner</field>
- <field name="arch" type="xml">
- <search>
- <field name="team_id" />
- <field name="partner_id" />
- <field name="role" />
- </search>
- </field>
- </record>
- <record id="view_github_team_partner_tree" model="ir.ui.view">
- <field name="model">github.team.partner</field>
- <field name="arch" type="xml">
- <tree decoration-warning="role == 'member'">
- <field
- name="team_id"
- invisible="context.get('search_default_team_id')"
- />
- <field
- name="partner_id"
- invisible="context.get('search_default_partner_id')"
- />
- <field name="role" />
- </tree>
- </field>
- </record>
- <record id="view_github_team_partner_form" model="ir.ui.view">
- <field name="model">github.team.partner</field>
- <field name="arch" type="xml">
- <form>
- <sheet>
- <div class="oe_button_box" name="button_box" />
- <div class="oe_title">
- <h1>
- <field name="partner_id" />
- </h1>
- <h2>
- <field name="team_id" />
- </h2>
- </div>
- <field name="role" />
- </sheet>
- </form>
- </field>
- </record>
- <record id="view_github_team_partner_from_team_kanban" model="ir.ui.view">
- <field name="name">github.team.partner.kanban</field>
- <field name="model">github.team.partner</field>
- <field name="arch" type="xml">
- <kanban>
- <field name="partner_id" />
- <field name="role" />
- <templates>
- <t t-name="kanban-box">
- <div class="oe_kanban_global_click">
- <div class="o_kanban_image">
- <img
- alt="Avatar"
- t-att-src="kanban_image('res.partner', 'image_128', record.partner_id.raw_value)"
- />
- </div>
- <div class="oe_kanban_details">
- <h3>
- <field name="partner_id" />
- </h3>
- <t t-if="record.role.raw_value == 'member'">
- <span class="badge">
- <i class="fa fa-fw fa-user" />
- <t t-esc="record.role.value" />
- </span>
- </t>
- <t t-if="record.role.raw_value == 'maintainer'">
- <span class="badge">
- <i class="fa fa-fw fa-cog" />
- <t t-esc="record.role.value" />
- </span>
- </t>
- </div>
- </div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
- <record id="view_github_team_partner_from_partner_kanban" model="ir.ui.view">
- <field name="model">github.team.partner</field>
- <field name="arch" type="xml">
- <kanban>
- <field name="team_id" />
- <field name="role" />
- <templates>
- <t t-name="kanban-box">
- <div class="o_res_partner_kanban oe_kanban_global_click">
- <div class="oe_module_desc">
- <h3>
- <field name="team_id" />
- </h3>
- <t t-if="record.role.raw_value == 'member'">
- <span class="badge">
- <i class="fa fa-fw fa-user" />
- <t t-esc="record.role.value" />
- </span>
- </t>
- <t t-if="record.role.raw_value == 'maintainer'">
- <span class="badge">
- <i class="fa fa-fw fa-cog" />
- <t t-esc="record.role.value" />
- </span>
- </t>
- </div>
- </div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
- </odoo>
|