mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: add sale channel icon in datamodel and service
This commit is contained in:
committed by
Darío Lodeiros
parent
5bf8ee9e05
commit
d62b67a6b7
@@ -13,3 +13,4 @@ class PmsSaleChannelInfo(Datamodel):
|
||||
id = fields.Integer(required=True, allow_none=False)
|
||||
name = fields.String(required=True, allow_none=False)
|
||||
channelType = fields.String(required=True, allow_none=True)
|
||||
icon = fields.String(required=False, allow_none=True)
|
||||
|
||||
@@ -62,6 +62,9 @@ class PmsSaleChannelService(Component):
|
||||
channelType=sale_channel.channel_type
|
||||
if sale_channel.channel_type
|
||||
else None,
|
||||
icon=sale_channel.icon
|
||||
if sale_channel.icon
|
||||
else None,
|
||||
)
|
||||
)
|
||||
return result_sale_channels
|
||||
|
||||
Reference in New Issue
Block a user