From d0cbe52c111af923f0df5d0d231b164a150bf2db Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Fri, 16 Apr 2021 07:22:47 +0000 Subject: [FIX] core: fix deprecation warning Without the f-string literal the XML ID is not printed. closes odoo/odoo#69359 Signed-off-by: Xavier Morel (xmo) --- odoo/tools/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odoo') diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py index 6295f03e56c..7d0f785bb3e 100644 --- a/odoo/tools/convert.py +++ b/odoo/tools/convert.py @@ -333,7 +333,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')) -- cgit v1.2.3