[ADD] store compute binding reservation fields

This commit is contained in:
Dario Lodeiros
2019-04-28 15:01:08 +02:00
parent 69c9ece17d
commit 9727857808

View File

@@ -142,11 +142,13 @@ class HotelReservation(models.Model):
string='Hotel Channel Connector Bindings')
ota_id = fields.Many2one('channel.ota.info',
string='Channel OTA ID',
readonly=True,
store=True,
compute='_compute_external_data')
ota_reservation_id = fields.Char("Channel OTA Reservation Code",
store=True,
compute='_compute_external_data')
external_id = fields.Char(string='ID on Channel',
store=True,
compute='_compute_external_data')
# TODO: Dario v2
# origin_sale = fields.Char('Origin', compute=_get_origin_sale,