From 9f8eae34d1d89d7cf01eef8a1a89dc431ef5f4e2 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 19 Jul 2018 13:35:27 +0200 Subject: [FIX] undefined variables (potential nameerror) Backport 9ec0455abc041b855dcab18e8e185baf806b9f14 and 6a601fe6dc848cdeca2ab8429210e3b5087275d9 as they fixed various possible NameError but did so in later sub-releases. --- odoo/tools/xml_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odoo/tools/xml_utils.py') diff --git a/odoo/tools/xml_utils.py b/odoo/tools/xml_utils.py index 864f1ce0caa..eb5b8b203bf 100644 --- a/odoo/tools/xml_utils.py +++ b/odoo/tools/xml_utils.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from lxml import etree from odoo.tools.misc import file_open - +from odoo.exceptions import UserError def check_with_xsd(tree_or_str, stream): raise UserError("Method 'check_with_xsd' deprecated ") -- cgit v1.2.3