From e59b032f06dea5c5c703a78a5820d34fd539fc33 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Fri, 16 Apr 2021 07:22:47 +0000 Subject: [PATCH] [FIX] core: fix deprecation warning Without the f-string literal the XML ID is not printed. closes odoo/odoo#69419 X-original-commit: d0cbe52c111af923f0df5d0d231b164a150bf2db Signed-off-by: Xavier Morel (xmo) --- odoo/tools/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py index 34651e97b52..e4ff57990fa 100644 --- a/odoo/tools/convert.py +++ b/odoo/tools/convert.py @@ -336,7 +336,7 @@ form: module.record_id""" % (xml_id,) name = rec.get('name') xml_id = rec.get('id','') self._test_xml_id(xml_id) - warnings.warn("The tag is deprecated, use a for {xml_id!r}.", DeprecationWarning) + warnings.warn(f"The tag is deprecated, use a for {xml_id!r}.", DeprecationWarning) view_id = False if rec.get('view_id'): view_id = self.id_get(rec.get('view_id'))