Files
Odoo-18.0-20251222/sale_tier_validation/models/sale_order.py
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

23 lines
720 B
Python
Executable File

# Copyright 2019 Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class SaleOrder(models.Model):
_name = "sale.order"
_inherit = ["sale.order", "tier.validation"]
_state_from = ["draft", "sent"]
_state_to = ["sale"]
_tier_validation_manual_config = False
def _get_requested_notification_subtype(self):
return "sale_tier_validation.sale_order_tier_validation_requested"
def _get_accepted_notification_subtype(self):
return "sale_tier_validation.sale_order_tier_validation_accepted"
def _get_rejected_notification_subtype(self):
return "sale_tier_validation.sale_order_tier_validation_rejected"