c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #03459
[Bug 582351] Re: [6.0] US states not loaded (import specification does not contain 'id' in init mode)
Alberto, thanks for reporting this error.
The fix was applied some time ago in revision 2263 fp@xxxxxxxxxxx-20100519183210-vyo63jvfs22mpxhg, so I am closing the issue.
** Changed in: openobject-server
Status: New => Fix Released
--
[6.0] US states not loaded (import specification does not contain 'id' in init mode)
https://bugs.launchpad.net/bugs/582351
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Server: Fix Released
Bug description:
Hello,
Reloading all modules with "--update=all" option, one of our instances of 5.2 server prompted following error when updating "base" module:
ERROR:init:Import specification does not contain 'id' and we are in init mode, Cannot continue.
Debugging such module, I realized that problem was in "res.country.state.csv" file found under <server_path>/bin/addons/base/data. In this file, there's no "id" field (mandatory as it's said in 'convert.py' file, under <server_path>/bin/tools), only a "country_id:id" referencing United States country, so I created this field, entering values like "us_state_XX" as it can be seen in attached diff.
After these changes, this error disappeared and the modules' load went just fine.
Hope this helps.