Public release from ruodoo-project: 19.0 - 2026-11-01 22:52:25 UTC

This commit is contained in:
CI Publish Bot
2026-11-01 22:54:30 +00:00
commit 26250aa580
2492 changed files with 664277 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from . import index_report

View File

@@ -0,0 +1,12 @@
from odoo.http import Controller, route, request
class NodeMetricsReportController(Controller):
@route(['/node_metrics/report/<int:index_id>'], type='http', auth='user')
def report(self, index_id):
index_record = request.env['hg.index'].sudo().browse(index_id)
if not index_record.exists():
return "Record not found"
image_data = index_record.generate_graph_image()
img_html = f'<img src="data:image/png;base64,{image_data}" alt="Node Metrics Graph"/>'
return img_html