-
-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
626ef6d
commit 2745524
Showing
9 changed files
with
208 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
"data": [ | ||
"data/qc_issue_sequence.xml", | ||
"views/qc_issue_view.xml", | ||
"views/qc_problem_track_view.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openerp import api, fields, models | ||
|
||
|
||
class QcProblemTrack(models.Model): | ||
_name = "qc.problem.track" | ||
_description = "Quality Control Problem Tracking" | ||
_inherit = "mail.thread" | ||
|
||
name = fields.Char() | ||
notes = fields.Text() | ||
issue_ids = fields.Many2many( | ||
comodel_name="qc.issue", string="QC Issues", | ||
relation="qc_issue_problem_rel", column1="qc_problem_id", | ||
column2="qc_issue_id") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?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_track_tree" model="ir.ui.view"> | ||
<field name="name">My view description</field> | ||
<field name="model">qc.problem.track</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Problem Tracking"> | ||
<field name="name"/> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="qc_problem_track_form" model="ir.ui.view"> | ||
<field name="name">My view description</field> | ||
<field name="model">qc.problem.track</field> | ||
<field name="arch" type="xml"> | ||
<form> | ||
<sheet> | ||
<group> | ||
<field name="name"/> | ||
<field name="notes"/> | ||
</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 id="qc_problem_track_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.track</field> | ||
<field name="view_type">form</field> | ||
</record> | ||
|
||
<menuitem id="menu_qc_problem_track" | ||
parent="quality_control_issue.menu_qc_ncmr" | ||
action="qc_problem_track_action" | ||
sequence="40" name="Problem Tracking"/> | ||
|
||
</odoo> |