Files
pms/hotel_channel_connector/models/hotel_reservation/importer.py
QS5ELkMu 9c76c0e932 Finalize Calendar & Connector integration (#69)
* [WIP] Refactor calendar_channel_connector

* [FIX] Hotel Calendar + Hotel Connector

* [ADD] Push URLs

* [IMP] Connector

* [IMP] Notifications

* [ADD] hotel_channel_connector_wubook

* [FIX] missing imports

* [IMP] Clean code
2018-11-25 17:38:24 +01:00

20 lines
580 B
Python

# Copyright 2018 Alexandre Díaz <dev@redneboa.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api
from odoo.addons.component.core import Component
class HotelReservationImporter(Component):
_name = 'channel.hotel.reservation.importer'
_inherit = 'hotel.channel.importer'
_apply_on = ['channel.hotel.reservation']
_usage = 'hotel.reservation.importer'
@api.model
def fetch_booking(self, channel_reservation_id):
raise NotImplementedError
def fetch_new_bookings(self):
raise NotImplementedError