Public release from ruodoo-project: 19.0 - 2026-07-26 21:17:35 UTC
This commit is contained in:
24
tier_communications/models/tier_routing_channel.py
Normal file
24
tier_communications/models/tier_routing_channel.py
Normal file
@ -0,0 +1,24 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class TierRoutingChannel(models.Model):
|
||||
_name = 'tier.routing.channel'
|
||||
_description = 'Channel Routing Rule'
|
||||
|
||||
partner_id = fields.Many2one(
|
||||
'res.partner',
|
||||
string='Partner',
|
||||
required=True,
|
||||
)
|
||||
channel_tag_ids = fields.Many2many(
|
||||
'tier.channel.tag',
|
||||
string='Allowed Channels',
|
||||
)
|
||||
preferred_channel_tag_id = fields.Many2one(
|
||||
'tier.channel.tag',
|
||||
string='Preferred Channel',
|
||||
)
|
||||
priority = fields.Integer(
|
||||
string='Priority',
|
||||
default=10,
|
||||
)
|
||||
Reference in New Issue
Block a user