[FIX] addons: avoid deleting resources after stand-alone base module update
authorOlivier Dony <odo@openerp.com>
Mon, 13 Dec 2010 16:18:02 +0000 (17:18 +0100)
committerOlivier Dony <odo@openerp.com>
Mon, 13 Dec 2010 16:18:02 +0000 (17:18 +0100)
commit7bcccbafe585701724e4bc118ab9b9495145d08c
tree1faef5d2072c1e07cd367a1f8ce972b4ec916897
parente55bd7051cdfcc53b81f73e0797722510c9ccc01
[FIX] addons: avoid deleting resources after stand-alone base module update
When updating a database, base module is first loaded on its own, and this may cause useless deletion
of resource, because the aut-cleanup process. This process looks for records that are in the base namespace and
have not been processed, and deletes them because they are presumed removed from the newer version. This does not
properly work now that several modules install records (menus, groups) in the base namespace.
This is fixed by skipping the auto-cleanup process during the stand-alone loading of base, which is fine
because it will be processed properly after the rest of the modules are loaded/updated.
(No specific LP bug reference, but many translation bugs stem partially from this)

bzr revid: odo@openerp.com-20101213161802-ulsece9bb3q1y1fx
bin/addons/__init__.py