ftp error if name field is a date
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Harry (OpenERP) |
Bug Description
branch-server 1803
branch-addons official 2375
branch-addons chricar_
chricar.tenant has the fields
'name' : fields.date ('From', required=True),
'partner_id' : fields.
the directory name is displayed correctly, but trying to enter the directory causes an error
btw I'd like to include the tenants name (partner_id) in the directory name
is there a special function which returns directory names or do I have to overwrite name_get ?
thank you
[2009-07-16 18:39:45,337] ERROR:FTP:[01]: Environment_
[2009-07-16 18:39:45,338] ERROR:FTP:[02]: PlatForm : linux2
[2009-07-16 18:39:45,339] ERROR:FTP:[03]: Operating System : posix
[2009-07-16 18:39:45,339] ERROR:FTP:[04]: Operating System Version : [GCC 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]]
[2009-07-16 18:39:45,339] ERROR:FTP:[05]: Operating System Locale : en_US
[2009-07-16 18:39:45,339] ERROR:FTP:[06]: Python Version : 2.5.2
[2009-07-16 18:39:45,339] ERROR:FTP:[07]: OpenERP-Server Version : 5.0.1
[2009-07-16 18:39:45,340] ERROR:FTP:[08]: Last revision Details:
[2009-07-16 18:39:45,340] ERROR:FTP:[09]: revno: 1803 [merge]
[2009-07-16 18:39:45,340] ERROR:FTP:[10]: committer: Olivier Laurent <email address hidden>
[2009-07-16 18:39:45,340] ERROR:FTP:[11]: branch nick: server
[2009-07-16 18:39:45,340] ERROR:FTP:[12]: timestamp: Thu 2009-07-09 10:39:13 +0200
[2009-07-16 18:39:45,340] ERROR:FTP:[13]: Traceback (most recent call last):
[2009-07-16 18:39:45,341] ERROR:FTP:[14]: File "/usr/lib64/
[2009-07-16 18:39:45,341] ERROR:FTP:[15]: obj.handle_
[2009-07-16 18:39:45,341] ERROR:FTP:[16]: File "/usr/lib64/
[2009-07-16 18:39:45,341] ERROR:FTP:[17]: self.handle_read()
[2009-07-16 18:39:45,341] ERROR:FTP:[18]: File "/usr/lib64/
[2009-07-16 18:39:45,342] ERROR:FTP:[19]: self.found_
[2009-07-16 18:39:45,342] ERROR:FTP:[20]: File "/home/
[2009-07-16 18:39:45,342] ERROR:FTP:[21]: method(arg) # call the proper ftp_* method
[2009-07-16 18:39:45,342] ERROR:FTP:[22]: File "/home/
[2009-07-16 18:39:45,342] ERROR:FTP:[23]: path = self.fs.
[2009-07-16 18:39:45,342] ERROR:FTP:[24]: File "/home/
[2009-07-16 18:39:45,343] ERROR:FTP:[25]: res = pool.get(
[2009-07-16 18:39:45,343] ERROR:FTP:[26]: File "/home/
[2009-07-16 18:39:45,343] ERROR:FTP:[27]: node = node.child(path)
[2009-07-16 18:39:45,343] ERROR:FTP:[28]: File "/home/
[2009-07-16 18:39:45,343] ERROR:FTP:[29]: res = self._child_
[2009-07-16 18:39:45,343] ERROR:FTP:[30]: File "/home/
[2009-07-16 18:39:45,344] ERROR:FTP:[31]: ids = obj.search(self.cr, self.uid, where)
[2009-07-16 18:39:45,344] ERROR:FTP:[32]: File "/home/
[2009-07-16 18:39:45,344] ERROR:FTP:[33]: cr.execute('select %s.id from ' % self._table + ','.join(tables) +qu1+' order by '+order_
[2009-07-16 18:39:45,344] ERROR:FTP:[34]: File "/home/
[2009-07-16 18:39:45,344] ERROR:FTP:[35]: return f(self, *args, **kwargs)
[2009-07-16 18:39:45,344] ERROR:FTP:[36]: File "/home/
[2009-07-16 18:39:45,345] ERROR:FTP:[37]: res = self._obj.
[2009-07-16 18:39:45,345] ERROR:FTP:[38]: ProgrammingError: operator does not exist: date ~~ unknown
[2009-07-16 18:39:45,345] ERROR:FTP:[39]: LINE 1: ...r_tenant.top_id in (28)) AND (chricar_
[2009-07-16 18:39:45,345] ERROR:FTP:[40]: ^
[2009-07-16 18:39:45,345] ERROR:FTP:[41]: HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Thanks to reporting. It should be work. Should use '=' operator instead of 'like' operator.