[UPD][WIP] update files for using qweb email templates

This commit is contained in:
Pablo
2019-10-04 18:00:53 +02:00
parent 09420bd763
commit 732f14ea56
3 changed files with 5 additions and 3 deletions

View File

@@ -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',

View File

@@ -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:

View File

@@ -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,