From dfe31673ab70921e6535bd17589e1f6b90a24695 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 10 Jan 2011 11:15:58 +0100 Subject: [PATCH] [FIX] avoid different behavior depending of order of files in __openerp__.py bzr revid: chs@openerp.com-20110110101558-y0idch1no50nnign --- bin/addons/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 9bab01cbb16..a5f6fe5daa6 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -3,7 +3,7 @@ # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). -# Copyright (C) 2010 OpenERP s.a. (). +# Copyright (C) 2010-2011 OpenERP s.a. (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -679,8 +679,8 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules= cr.rollback() def _load_data(cr, module_name, id_map, mode, kind): - noupdate = (kind == 'demo') for filename in package.data.get(kind, []): + noupdate = (kind == 'demo') _, ext = os.path.splitext(filename) log.info("module %s: loading %s", module_name, filename) pathname = os.path.join(module_name, filename)