简体   繁体   中英

ProgrammingError: operator does not exist: integer = boolean

File "/home/bellvantage/Documents/openerp-7.0/openerp-7.0/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...=1,write_date=(now() at time zone 'UTC') where id IN (false)
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

I tried to override the write function. in that i need to update another model's (bpl.company.define) column also.so i used the write() method.but its give above error & need to sort it. please advice me and explaint which parameters need to pass for the write() method (except cr,uid).

I upload my model class here . & view class here .

Line number 100 in bpl.py

Ok its sorted friend.issue with my entered data in database.the data which is going to read is null.so thats return false and error comes like that :-)

“now()在时区..........”看起来很像SQL,它应该是用双引号括起来的Python字符串,而不是简单的单词。

I think in the create function in the file bpl.py, division_id you get is false and you try to browse the record which is a none type object and then trying to write to it. Please check whether you a correct id for division_id.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM