mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
109 lines
5.1 KiB
XML
109 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
|
|
<record id="qc_team_view_form" model="ir.ui.view">
|
|
<field name="name">qc.team.form</field>
|
|
<field name="model">qc.team</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Quality Control Team">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label for="name" class="oe_edit_only" string="Quality Control team"/>
|
|
<h1>
|
|
<field name="name" placeholder="Quality Control Team name..."/>
|
|
</h1>
|
|
<div name="options_active"/>
|
|
</div>
|
|
<group>
|
|
<group name="left">
|
|
<field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager']}"/>
|
|
</group>
|
|
<group name="right">
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="members" string="Team Members">
|
|
<field name="member_ids" widget="many2many_kanban" options="{'not_delete': True}">
|
|
<kanban quick_create="false" create="true" delete="true">
|
|
<field name="name"/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div class="oe_kanban_global_click" style="position: relative">
|
|
<a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
|
|
<div class="oe_module_vignette">
|
|
<img t-att-src="kanban_image('res.users', 'image_small', record.id.value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
|
|
<div class="oe_module_desc">
|
|
<field name="name"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</page>
|
|
<page string="More Info" name="more_info" groups="base.group_no_one">
|
|
<group>
|
|
<field name="active"/>
|
|
</group>
|
|
<group string="Company" groups="base.group_multi_company">
|
|
<field name="company_id" options="{'no_create': True}"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"
|
|
help="Follow this QC team to automatically track the events associated to users of this team."/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="qc_team_view_tree" model="ir.ui.view">
|
|
<field name="name">qc.team.tree</field>
|
|
<field name="model">qc.team</field>
|
|
<field name="field_parent">child_ids</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Quality Control Team">
|
|
<field name="name"/>
|
|
<field name="active" invisible="1"/>
|
|
<field name="user_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="qc_team_config_action" model="ir.actions.act_window">
|
|
<field name="name">Quality Control Teams</field>
|
|
<field name="res_model">qc.team</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click here to define a new quality control team.
|
|
</p><p>
|
|
Use quality control team to organize your different
|
|
departments into separate teams. Each team will work in
|
|
its own list of processes, stages...
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem name="Configuration"
|
|
id="quality_control.menu_qc_config"
|
|
groups="base.group_configuration"
|
|
parent="quality_control.qc_menu"
|
|
sequence="100"/>
|
|
|
|
<menuitem name="Quality Control Teams"
|
|
id="qc_team_config_menu"
|
|
groups="base.group_configuration"
|
|
parent="quality_control.menu_qc_config"
|
|
action="qc_team_config_action"
|
|
sequence="10"/>
|
|
|
|
</odoo>
|