mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP][MIG][11.0] Hotel Calendar & Hotel Channel Connector
This commit is contained in:
41
hotel_calendar/tests/common.py
Normal file
41
hotel_calendar/tests/common.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2017 Solucións Aloxa S.L. <info@aloxa.eu>
|
||||
# Alexandre Díaz <dev@redneboa.es>
|
||||
#
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from odoo.addons.hotel.tests.common import TestHotel
|
||||
|
||||
|
||||
class TestHotelCalendar(TestHotel):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestHotelCalendar, cls).setUpClass()
|
||||
|
||||
# Minimal Hotel Calendar Configuration
|
||||
cls.tz_hotel = 'Europe/Madrid'
|
||||
cls.parity_pricelist_id = cls.pricelist_1.id
|
||||
cls.parity_restrictions_id = cls.restriction_1.id
|
||||
cls.env['ir.default'].sudo().set_default('res.config.settings',
|
||||
'default_arrival_hour',
|
||||
'14:00')
|
||||
cls.env['ir.default'].sudo().set_default('res.config.settings',
|
||||
'default_departure_hour',
|
||||
'12:00')
|
||||
Reference in New Issue
Block a user