mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[9.0][ADD] quality_control_issue
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
06d828f436
commit
508fe0a28b
17
quality_control_issue/models/qc_problem_group.py
Normal file
17
quality_control_issue/models/qc_problem_group.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- 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 fields, models
|
||||
|
||||
|
||||
class QcProblemGroup(models.Model):
|
||||
_name = "qc.problem.group"
|
||||
_description = "Quality Control Problem Tracking Groups"
|
||||
|
||||
name = fields.Char()
|
||||
problem_ids = fields.One2many(
|
||||
comodel_name="qc.problem", inverse_name="problem_group_id")
|
||||
company_id = fields.Many2one(
|
||||
comodel_name='res.company', string='Company', required=True,
|
||||
default=lambda self: self.env.user.company_id)
|
||||
Reference in New Issue
Block a user