[UPD] display extra info as channel message

This commit is contained in:
Pablo
2019-03-08 16:30:16 +01:00
parent ea40f2ed74
commit c79575f7b9

View File

@@ -36,10 +36,10 @@ class ChannelHotelReservation(models.Model):
self.env['hotel.channel.connector.issue'].create({
'backend_id': record.backend_id.id,
'section': 'reservation',
'internal_message': "Disagreement in reservation price. Odoo marked %.2f whereas the channel sent %.2f. %s" % (
'internal_message': "Disagreement in reservation price. Odoo marked %.2f whereas the channel sent %.2f." % (
record.odoo_id.price_room_services_set,
record.channel_total_amount,
'Please, review the board services included in the reservation.'),
record.channel_total_amount),
'channel_message': 'Please, review the board services included in the reservation.',
'channel_object_id': record.external_id
})