From f74950454dcb3d27ec26e321c3502994d726dab6 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Wed, 26 Oct 2022 17:58:26 +0200
Subject: [PATCH] [update] calendar xml template to add calendar_description
 field if defined

---
 static/src/xml/calendar_view.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 static/src/xml/calendar_view.xml

diff --git a/static/src/xml/calendar_view.xml b/static/src/xml/calendar_view.xml
new file mode 100644
index 0000000..12c795a
--- /dev/null
+++ b/static/src/xml/calendar_view.xml
@@ -0,0 +1,16 @@
+<template>
+
+    <t t-inherit="web.calendar-box" t-name="cgscop_fullcalendar.cgscop-calendar-box" t-inherit-mode="extension">
+        <xpath expr="//div[hasclass('o_event_title')]" position="replace">
+            <t t-if="record.calendar_description">
+                <div class="o_event_title">
+                    <t t-raw="record.calendar_description" />
+                </div>
+            </t>
+            <t t-else="">
+                <div class="o_event_title" t-esc="record.display_name"/>
+            </t>
+        </xpath>
+    </t>
+
+</template>
-- 
GitLab