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/fields.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'odoo/fields.py') diff --git a/odoo/fields.py b/odoo/fields.py index a1f434db849..58f7dc67dcb 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -1630,7 +1630,8 @@ class Datetime(Field): # Received data is returned as buffer (in Python 2) or memoryview (in Python 3). _BINARY = memoryview if pycompat.PY2: - _BINARY = buffer #pylint: disable=buffer-builtin + #pylint: disable=buffer-builtin,undefined-variable + _BINARY = buffer class Binary(Field): type = 'binary' -- cgit v1.2.3