[FIX] calendar: remove description_to_html_lines method reference

With commit that replaced most of the text fields to HTML fields (see
commit[1]), the `description_to_html_lines` method was removed from
`calendar.event` model and linked templates. But another commit[2]
merged afterwards introduced a mail template that used this method,
due to which the rendering used to crashed.

This commit adapts the template and thus fixes the crash while
rendering the template.

commit[1] - https://github.com/odoo/odoo/commit/cb4f597410bcb08208ee277144d755bef8b6d688
commit[2] - https://github.com/odoo/odoo/commit/40fd44f618cb54d8c75b8c090cc36655316aa825

task-2821957

closes odoo/odoo#91280

X-original-commit: 71b9e36f5c5e36f13f26bf74038ddb736d5e25de
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
MAHAMADASIF ANSARI
2022-05-13 09:51:11 +02:00
parent c5964f84d9
commit e2429999fe
2 changed files with 4 additions and 22 deletions
+2 -11
View File
@@ -402,18 +402,9 @@
<strong>Details of the event</strong>
</p>
<ul>
<t t-if="not is_online and object.display_description">
<li>Description: <t t-out="object.description or ''" /></li>
</t>
<t t-elif="is_online and object.description">
<t t-set="splitted_description" t-value="object.description_to_html_lines()" />
<t t-if="not is_html_empty(object.description)">
<li>Description:
<ul>
<t t-foreach="splitted_description" t-as="description_line">
<li t-out="description_line or ''"></li>
</t>
</ul>
</li>
<t t-out="object.description">Internal meeting for discussion for new pricing for product and services.</t></li>
</t>
<t t-if="object.videocall_location">
<li>Meeting URL:
+2 -11
View File
@@ -210,18 +210,9 @@ msgid ""
" <strong>Details of the event</strong>\n"
" </p>\n"
" <ul>\n"
" <t t-if=\"not is_online and object.display_description\">\n"
" <li>Description: <t t-out=\"object.description or ''\"/></li>\n"
" </t>\n"
" <t t-elif=\"is_online and object.description\">\n"
" <t t-set=\"splitted_description\" t-value=\"object.description_to_html_lines()\"/>\n"
" <t t-if=\"not is_html_empty(object.description)\">\n"
" <li>Description:\n"
" <ul>\n"
" <t t-foreach=\"splitted_description\" t-as=\"description_line\">\n"
" <li t-out=\"description_line or ''\"/>\n"
" </t>\n"
" </ul>\n"
" </li>\n"
" <t t-out=\"object.description\">Internal meeting for discussion for new pricing for product and services.</t></li>\n"
" </t>\n"
" <t t-if=\"object.videocall_location\">\n"
" <li>Meeting URL:\n"