mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
28 lines
1016 B
Python
28 lines
1016 B
Python
# Copyright 2010 NaN Projectes de Programari Lliure, S.L.
|
|
# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza
|
|
# Copyright 2014 Oihane Crucelaegui - AvanzOSC
|
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
|
# Copyright 2017 Simone Rubino - Agile Business Group
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class QcTrigger(models.Model):
|
|
_name = "qc.trigger"
|
|
_description = "Quality control trigger"
|
|
|
|
name = fields.Char(string="Name", required=True, translate=True)
|
|
active = fields.Boolean(string="Active", default=True)
|
|
company_id = fields.Many2one(
|
|
comodel_name="res.company",
|
|
string="Company",
|
|
default=lambda self: self.env["res.company"]._company_default_get("qc.test"),
|
|
)
|
|
partner_selectable = fields.Boolean(
|
|
string="Selectable by partner",
|
|
default=False,
|
|
readonly=True,
|
|
help="This technical field is to allow to filter by partner in" " triggers",
|
|
)
|