From 9727857808ac8f49282fbee66efcdbcb8270fc76 Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Sun, 28 Apr 2019 15:01:08 +0200 Subject: [PATCH] [ADD] store compute binding reservation fields --- hotel_channel_connector/models/hotel_reservation/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hotel_channel_connector/models/hotel_reservation/common.py b/hotel_channel_connector/models/hotel_reservation/common.py index 4e419a0ca..87abeb64d 100644 --- a/hotel_channel_connector/models/hotel_reservation/common.py +++ b/hotel_channel_connector/models/hotel_reservation/common.py @@ -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,