mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
137 lines
6.0 KiB
XML
137 lines
6.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
|
|
<odoo>
|
|
|
|
<record id="qc_problem_tree" model="ir.ui.view">
|
|
<field name="name">qc.problem.tree</field>
|
|
<field name="model">qc.problem</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Problem Tracking">
|
|
<field name="name"/>
|
|
<field name="problem_group_id"/>
|
|
<field name="issue_count"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="qc_problem_form" model="ir.ui.view">
|
|
<field name="name">qc.problem.form</field>
|
|
<field name="model">qc.problem</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<field name="stage_id" widget="statusbar" clickable="True"
|
|
options="{'fold_field': 'fold'}"
|
|
domain="['|', ('qc_team_id', '=', qc_team_id), ('qc_team_id', '=', False)]"/>
|
|
<!--attrs="{'invisible': [('active', '=', False)]}"/>-->
|
|
</header>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="problem_group_id"/>
|
|
<field name="notes"/>
|
|
</group>
|
|
<group>
|
|
<field name="qc_team_id" widget="selection"/>
|
|
<field name="company_id"
|
|
groups="base.group_multi_company"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="qc_issues" string="QC Issues">
|
|
<field name="issue_ids"/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers" />
|
|
<field name="message_ids" widget="mail_thread" />
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="qc_problem_kanban_view">
|
|
<field name="name">qc.problem.kanban</field>
|
|
<field name="model">qc.problem</field>
|
|
<field name="arch" type="xml">
|
|
<kanban class="o_kanban_small_column" default_group_by="stage_id">
|
|
<field name="stage_id"/>
|
|
<!--<field name="stage_id" options='{"group_by_tooltip": {"requirements": "Description", "legend_priority": "Use of stars"}}'/>-->
|
|
<field name="color"/>
|
|
<field name="priority"/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click">
|
|
<div class="o_dropdown_kanban dropdown">
|
|
|
|
<a class="dropdown-toggle btn" data-toggle="dropdown" href="#" >
|
|
<span class="fa fa-bars fa-lg"/>
|
|
</a>
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
|
<t t-if="widget.editable"><li><a type="edit">Edit</a></li></t>
|
|
<t t-if="widget.deletable"><li><a type="delete">Delete</a></li></t>
|
|
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
|
|
</ul>
|
|
</div>
|
|
<div class="oe_kanban_content">
|
|
<div>
|
|
<strong><field name="name"/></strong>
|
|
</div>
|
|
<field name="problem_group_id"/><br></br>
|
|
<field name="issue_count"/> issues
|
|
<div class="o_kanban_footer">
|
|
<field name="priority" widget="priority" groups="base.group_user"/>
|
|
</div>
|
|
</div>
|
|
<div class="oe_clear"></div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="qc_problem_search">
|
|
<field name="name">qc.problem.search</field>
|
|
<field name="model">qc.problem</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
<field name="notes"/>
|
|
<field name="qc_team_id"/>
|
|
<field name="stage_id"/>
|
|
<field name="problem_group_id"/>
|
|
<group expand="0" string="Group By...">
|
|
<filter string="Stage" domain="[]" context="{'group_by':'stage_id'}"/>
|
|
<filter string="Problem Group" domain="[]" context="{'group_by': 'problem_group_id'}"/>
|
|
<filter string="QC Team" domain="[]" context="{'group_by': 'qc_team_id'}"/>
|
|
<filter string="Company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="qc_problem_action" model="ir.actions.act_window">
|
|
<field name="name">Problem Tracking</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">qc.problem</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_qc_problem_tracking"
|
|
parent="quality_control.qc_menu"
|
|
sequence="60" name="Problem Tracking"/>
|
|
|
|
<menuitem id="menu_qc_problem"
|
|
parent="quality_control_issue.menu_qc_problem_tracking"
|
|
action="qc_problem_action"
|
|
sequence="20" name="Problems"/>
|
|
|
|
</odoo>
|