From d6582fc94f13fe51a2a6d81f8a4ea8fce95769d4 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Fri, 16 Aug 2024 16:42:54 +0200 Subject: [PATCH] [ADD]Yaltik DSL : add style tag and fixes for headings --- yaltik_dsl/__manifest__.py | 2 +- yaltik_dsl/src/odoo_dsl.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/yaltik_dsl/__manifest__.py b/yaltik_dsl/__manifest__.py index 544df3e..805ae35 100644 --- a/yaltik_dsl/__manifest__.py +++ b/yaltik_dsl/__manifest__.py @@ -17,7 +17,7 @@ 'name': 'Yaltik Odoo DSL base module and fns', 'summary': 'Yaltik Odoo Domain Specific Language base module and functions', 'description': """ Yaltik Odoo Domain Specific Language base module and functions """, - 'version': '12.0.0.5.14', + 'version': '12.0.0.5.15', 'category': 'Yaltik', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/yaltik_dsl/src/odoo_dsl.py b/yaltik_dsl/src/odoo_dsl.py index 5919109..14f642d 100644 --- a/yaltik_dsl/src/odoo_dsl.py +++ b/yaltik_dsl/src/odoo_dsl.py @@ -92,10 +92,10 @@ div = lambda *args: xmln('div', *args) span = lambda *args: xmln('span', *args) br = lambda *args: xmln('br', *args) h1 = lambda *args: xmln('h1', *args) -h2 = lambda *args: xmln('h1', *args) -h3 = lambda *args: xmln('h1', *args) -h4 = lambda *args: xmln('h1', *args) -h5 = lambda *args: xmln('h1', *args) +h2 = lambda *args: xmln('h2', *args) +h3 = lambda *args: xmln('h3', *args) +h4 = lambda *args: xmln('h4', *args) +h5 = lambda *args: xmln('h5', *args) ul = lambda *args: xmln('ul', *args) li = lambda *args: xmln('li', *args) label = lambda *args: xmln('label', *args) @@ -104,6 +104,8 @@ small = lambda *args: xmln('small', *args) table = lambda *args: xmln('table', *args) tr = lambda *args: xmln('tr', *args) td = lambda *args: xmln('td', *args) +style = lambda *args: xmln('style', *args) + notebook = lambda *args: xmln('notebook', *args) page = lambda *args: xmln('page', *args) xpath = lambda *args: xmln('xpath', *args)