Dear Ivan Thanks for your prompted action but to be clear with the Issue let me share u code snippet for the controller as well as template
with Kind Regards
templete >>>
<template id = "posted_news_feed" name = "News Feed" >
<t t-call = "website.layout" >
<div class = "container" >
<table>
<tbody>
<t t-foreach = "posted" t -as = "news_feed" >
<td>
<t t-if = "o.name" t-set = "web.news.content"
t-value = "o.get_cover_image (o.name)" /> <img
t-if = "web.news.content"
t-att-src = "image_data_uri (web.news.content)"
style = "max-height: 45px;" alt = "Cover Image" /> <b> <t t-esc = "news_feed.news_feed_title" /> <br/> </b> <t t-esc = "news_feed.news_feed_content" /> <br/> < / td> </t> </tbody> </table> <
class GetNewsFeedContent (http.Controller):
@ http.route ( '/ news' , website = True, type = "http" , auth = 'public' , csrf = False )
def news_posted ( self , ** kw ):
posted = request.env [ 'web.news.content' ] .sudo (). search ([])
# last_id = request.env ['web.news.content']. sudo (). search ([]) [- 1] .id
print ( "Saved news are ..." , request.render (
"news.posted_news_feed" , {
'posted' : posted
})