mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] sql constrain for channel board service and room type
This commit is contained in:
@@ -9,3 +9,8 @@ class HotelBoardServiceRoomType(models.Model):
|
|||||||
_inherit = 'hotel.board.service.room.type'
|
_inherit = 'hotel.board.service.room.type'
|
||||||
|
|
||||||
channel_service = fields.Selection([], string='Channel Board Service')
|
channel_service = fields.Selection([], string='Channel Board Service')
|
||||||
|
|
||||||
|
_sql_constraints = [
|
||||||
|
('room_type_channel_service_id_uniq', 'unique(hotel_room_type_id, channel_service)',
|
||||||
|
'The channel board service must be unique for room type.'),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user