mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-19 14:32:04 +02:00
19 lines
668 B
Python
19 lines
668 B
Python
# Copyright 2017 Akretion (http://www.akretion.com)
|
|
# Copyright 2020 Camptocamp SA
|
|
# Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ExceptionRule(models.Model):
|
|
_inherit = "exception.rule"
|
|
|
|
purchase_ids = fields.Many2many(comodel_name="purchase.order", string="Purchases")
|
|
model = fields.Selection(
|
|
selection_add=[
|
|
("purchase.order", "Purchase order"),
|
|
("purchase.order.line", "Purchase order line"),
|
|
],
|
|
ondelete={"purchase.order": "cascade", "purchase.order.line": "cascade"},
|
|
)
|