[IMP] calendar: add resources and capacity info on template

Add the list of resources and the capacity when booking an appointment type.

task-2453291

closes odoo/odoo#120023

Related: odoo/enterprise#37220
Related: odoo/upgrade#4585
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Jérémy Hennecart (jeh)
2023-05-12 19:54:28 +02:00
parent 25ac24361a
commit 8b64f9dd4e
@@ -24,6 +24,9 @@
<t t-if="is_online and target_customer">
Your appointment <strong t-out="object.event_id.appointment_type_id.name or ''">Schedule a Demo</strong> <t t-if="object.event_id.appointment_type_id.category != 'custom'"> with <t t-out="object.event_id.user_id.name or ''">Ready Mat</t></t> has been booked.
<t t-if="is_online and object.state != 'accepted' and object.event_id.appointment_type_id.resource_manual_confirmation">
You will receive a mail of confirmation with more details when your appointment will be confirmed.
</t>
</t>
<t t-elif="is_online and target_responsible">
<t t-if="customer">
@@ -108,6 +111,17 @@
</t>
</li>
</ul></li>
<li t-if="is_online and object.event_id.appointment_type_id.resource_manage_capacity">
For: <t t-out="object.event_id.resource_total_capacity_reserved"/> people
</li>
<li t-if="is_online and object.event_id.appointment_type_id.assign_method != 'time_auto_assign'">
Resources
<ul>
<li t-foreach="object.event_id.appointment_resource_ids" t-as="resource">
<span style="margin-left:5px" t-out="resource.name or ''">Table 1</span>
</li>
</ul>
</li>
<t t-if="object.event_id.videocall_location">
<li>
How to Join: