mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
18 lines
547 B
Python
18 lines
547 B
Python
# Copyright 2021 Ecosoft Co., Ltd (https://ecosoft.co.th)
|
|
# 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"
|
|
|
|
picking_ids = fields.Many2many(comodel_name="stock.picking", string="Pickings")
|
|
model = fields.Selection(
|
|
selection_add=[
|
|
("stock.picking", "Stock Picking"),
|
|
("stock.move", "Stock Move"),
|
|
],
|
|
ondelete={"stock.picking": "cascade", "stock.move": "cascade"},
|
|
)
|