mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[UPD][WIP] update files for using qweb email templates
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user