mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 06:52:09 +02:00
17 lines
493 B
Python
17 lines
493 B
Python
# Copyright 2023 Quartile Limited
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ExceptionRule(models.Model):
|
|
_inherit = "exception.rule"
|
|
|
|
crm_lead_ids = fields.Many2many(comodel_name="crm.lead", string="Opportunities")
|
|
model = fields.Selection(
|
|
selection_add=[
|
|
("crm.lead", "Lead"),
|
|
],
|
|
ondelete={"crm.lead": "cascade"},
|
|
)
|
|
stage_ids = fields.Many2many(comodel_name="crm.stage")
|