From 2e373b2ce66965732880d231a7badc8d8dbdf901 Mon Sep 17 00:00:00 2001 From: "AzureAD\\SylvainDUVERNAY" Date: Fri, 29 May 2026 14:12:39 +0200 Subject: [PATCH] Fix Tradon processes content rendering --- .../purchase_trade/process_documentation.py | 56 ++++--------------- 1 file changed, 12 insertions(+), 44 deletions(-) diff --git a/modules/purchase_trade/process_documentation.py b/modules/purchase_trade/process_documentation.py index 0f1a74b..77c9814 100644 --- a/modules/purchase_trade/process_documentation.py +++ b/modules/purchase_trade/process_documentation.py @@ -22,7 +22,15 @@ class ProcessDocumentation(ModelSingleton, ModelSQL, ModelView): content = fields.Function(fields.Text('Content'), 'get_content') + @staticmethod + def default_content(): + return _html_content() + def get_content(self, name): + return _html_content() + + +def _html_content(): return HTML_TEMPLATE % { 'content': _documentation_content(), } @@ -183,48 +191,8 @@ def _render_table(lines, current_file): return ''.join(output) -HTML_TEMPLATE = ''' - - - - - - -
%(content)s
- - +HTML_TEMPLATE = '''
+ %(content)s +
'''