# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2017 Solucións Aloxa S.L. # Alexandre Díaz # # # 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 . # ############################################################################## 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.default_pricelist_id = cls.pricelist_1.id cls.default_restriction_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')