From 40f6c88fee21bba535cb4debfb706905a37a023c Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Wed, 9 Nov 2022 09:35:49 +0100 Subject: [PATCH] [FIX]Hy Odoo : from Hy v0.25.0 dfor adapted --- hy_odoo/__manifest__.py | 2 +- hy_odoo/xml.hy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hy_odoo/__manifest__.py b/hy_odoo/__manifest__.py index 865495d..f8e6815 100644 --- a/hy_odoo/__manifest__.py +++ b/hy_odoo/__manifest__.py @@ -8,7 +8,7 @@ 'name': 'Hy Odoo', 'summary': 'Hy Odoo', 'description': """ Hy functions and macros for Odoo """, - 'version': '16.0.0.8.8', + 'version': '16.0.0.8.9', 'category': 'Hy', 'author': 'Fabien Bourgeois', 'license': 'Other OSI approved licence', diff --git a/hy_odoo/xml.hy b/hy_odoo/xml.hy index 94a181f..744e0e2 100644 --- a/hy_odoo/xml.hy +++ b/hy_odoo/xml.hy @@ -33,7 +33,7 @@ (cond (instance? str children) (setv (. parent text) children) (instance? XMLDictElement children) (do - (setv attrs (dfor [k v] (.items (. children attrs)) [(str k) (str v)])) + (setv attrs (dfor [k v] (.items (. children attrs)) (str k) (str v))) (setv new-parent (.SubElement ET parent (. children tag) attrs) subchildren (. children children)) (when subchildren) (xmlchild new-parent subchildren))