(self)
return result
Render dynamic view from ir.action.client
Render dynamic view from ir.action.client
Render dynamic view from ir . action . client
def get_html(self):
        """ Render dynamic view from ir.action.client"""
        result = {}
        rcontext = {}
        rec = self.browse(self.env.context.get("active_id"))
        if rec:
            rcontext["o"] = rec
            result["html"] = self.env.ref(self.env.context.get("template_name")).render(
                rcontext
            )
        return result
def get_html ( self ) : result = { } rcontext = { } rec = self . browse ( self . env . context . get ( "active_id" ) ) if rec : rcontext [ "o" ] = rec result [ "html" ] = self . env . ref ( self . env . context . get ( "template_name" ) ) . render ( rcontext ) return result