Skip to content

Commit

Permalink
FIX APP tiles rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Jun 1, 2024
1 parent ce56966 commit 09ff82d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mobile_app_connector/models/app_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ def _render_single_tile(self, records):
self.ensure_one()
template_obj = self.env["mail.template"].with_context(objects=records)
res = {
"Title": template_obj._render_template(self.title, self._name, self.ids),
"Body": template_obj._render_template(self.body, self._name, self.ids),
"Title": template_obj._render_template(self.title, self._name, self.ids)[0],
"Body": template_obj._render_template(self.body, self._name, self.ids)[0],
"ActionText": template_obj._render_template(
self.action_text, self._name, self.ids
),
)[0],
"SortOrder": self.view_order,
"IsAutomaticOrdering": self.is_automatic_ordering,
}
Expand All @@ -231,10 +231,10 @@ def _render_single_tile(self, records):
res["PrayerPoint"] = {
"Body": template_obj._render_template(
self.prayer_body, self._name, self.ids
),
)[0],
"Title": template_obj._render_template(
self.prayer_title, self._name, self.ids
),
)[0],
}

if hasattr(records, "get_app_json"):
Expand Down

0 comments on commit 09ff82d

Please sign in to comment.