mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Sales Channel model
This commit is contained in:
committed by
Darío Lodeiros
parent
baa0e121bb
commit
c3c5ff059c
16
pms/models/pms_sales_channel.py
Normal file
16
pms/models/pms_sales_channel.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from odoo import models, fields
|
||||
class PmsSalesChannel(models.Model):
|
||||
_name="pms.room.sales.channel"
|
||||
_description="Sales Channel"
|
||||
_order="sequence, channel_type, name"
|
||||
|
||||
name=fields.Char("Sale Channel Name", required=True)
|
||||
channel_type=field.Selection(
|
||||
selection=[
|
||||
("direct","Direct"),
|
||||
("indirect","Indirect"),
|
||||
],
|
||||
string="Type"
|
||||
)
|
||||
is_offline=fields.Boolean("Is Offline")
|
||||
is_online=fields.Boolean("Is Online")
|
||||
Reference in New Issue
Block a user