diff options
Diffstat (limited to 'odoo/sql_db.py')
| -rw-r--r-- | odoo/sql_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/sql_db.py b/odoo/sql_db.py index 60803fc8f22..5826cd83813 100644 --- a/odoo/sql_db.py +++ b/odoo/sql_db.py @@ -65,7 +65,7 @@ def flush_env(cr): """ Retrieve and flush an environment corresponding to the given cursor """ for env in list(Environment.envs): # don't flush() on another cursor or with a RequestUID - if env.cr is cr and isinstance(env.uid, int): + if env.cr is cr and (isinstance(env.uid, int) or env.uid is None): env['base'].flush() break |
