[DMS] Error when retrieve list of directory.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Fail to retrieve a list of directories, there is an error message in OpenERP Server
-------
[]127.0.0.1:54135 Connected.
127.0.0.1:54135 ==> 220 pyftpdlib 0.4.0 ready.
127.0.0.1:54135 <== USER admin
127.0.0.1:54135 ==> 331 Username ok, send password.
127.0.0.1:54135 <== PASS ******
127.0.0.1:54135 ==> 230 Welcome on OpenERP document management system.
[admin]
127.0.0.1:54135 <== TYPE I
127.0.0.1:54135 ==> 200 Type set to: Binary.
127.0.0.1:54135 <== FEAT
127.0.0.1:54135 ==> 211 End FEAT.
127.0.0.1:54135 <== EPSV ALL
127.0.0.1:54135 ==> 220 Other commands other than EPSV are now disabled.
127.0.0.1:54135 <== SYST
127.0.0.1:54135 ==> 215 UNIX Type: L8
127.0.0.1:54135 <== NOOP
127.0.0.1:54135 ==> 200 I successfully done nothin'.
127.0.0.1:54135 <== NOOP
127.0.0.1:54135 ==> 200 I successfully done nothin'.
127.0.0.1:54135 <== CWD /
[admin]
127.0.0.1:54135 ==> 250 "/" is the current directory.
127.0.0.1:54135 <== EPSV
127.0.0.1:54135 ==> 229 Entering extended passive mode (|||58627|).
127.0.0.1:54135 <== LIST
Traceback (most recent call last):
File "/usr/lib/
obj.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/home/
method(arg) # call the proper ftp_* method
File "/home/
iterator = self.run_
File "/home/
return function(*args, **kwargs)
File "/home/
listing = self.listdir(path)
File "/home/
for db in self.db_list():
File "/home/
cr.
File "/home/
res = self.obj.
ProgrammingError: ERREUR: la relation « ir_module_module » n'existe pas
select id from ir_module_module where name like 'document%' and state='installed'
[admin]
-------
I found the problem, when 1 database don't have a document module installed it failed to connect.
If all databases have document module, it work very well
Correct the code, to ignore the database who doesn't have document mdoule installed.