From 732f14ea56aaa7b15aaf1ff41c6351a5b0850000 Mon Sep 17 00:00:00 2001 From: Pablo Date: Fri, 4 Oct 2019 18:00:53 +0200 Subject: [PATCH] [UPD][WIP] update files for using qweb email templates --- hotel/__manifest__.py | 4 +++- hotel/models/hotel_folio.py | 2 +- hotel/views/hotel_folio_views.xml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hotel/__manifest__.py b/hotel/__manifest__.py index 495fa2d29..c9c64cb47 100644 --- a/hotel/__manifest__.py +++ b/hotel/__manifest__.py @@ -20,7 +20,8 @@ 'sale_stock', 'account_payment_return', 'partner_firstname', - 'account_cancel' + 'account_cancel', + 'email_template_qweb' ], 'data': [ 'security/hotel_security.xml', @@ -33,6 +34,7 @@ 'data/email_template_exit.xml', 'report/hotel_folio.xml', 'report/hotel_folio_templates.xml', + 'templates/hotel_email_template.xml', 'wizard/massive_changes.xml', 'wizard/massive_price_reservation_days.xml', 'wizard/service_on_day.xml', diff --git a/hotel/models/hotel_folio.py b/hotel/models/hotel_folio.py index 321672247..3fe64a4fe 100644 --- a/hotel/models/hotel_folio.py +++ b/hotel/models/hotel_folio.py @@ -611,7 +611,7 @@ class HotelFolio(models.Model): try: template_id = ir_model_data.get_object_reference( 'hotel', - 'mail_template_hotel_reservation')[1] + 'email_template_reservation')[1] except ValueError: template_id = False try: diff --git a/hotel/views/hotel_folio_views.xml b/hotel/views/hotel_folio_views.xml index c4ff2b71b..f0aa9f180 100644 --- a/hotel/views/hotel_folio_views.xml +++ b/hotel/views/hotel_folio_views.xml @@ -339,7 +339,7 @@ 'default_model': 'hotel.folio', 'default_res_id': active_id, 'default_use_template': True, - 'default_template_id': ref('hotel.mail_template_hotel_reservation'), + 'default_template_id': ref('hotel.email_template_reservation'), 'default_composition_mode': 'comment', 'force_send': True, 'mark_so_as_sent': True,