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.
我试图覆盖写入功能。因为我需要更新另一个模型的(bpl.company.define)列。所以我使用了write()方法。但是它给出了上面的错误&需要对它进行排序。 请告诉我和explainint需要为write()方法传递哪些参数(cr,uid除外)。
bpl.py中的第100行
好的,我在数据库中输入的数据排序了friend.issue。要读取的数据是null。那就是返回false,错误就是这样: - )
答案 0 :(得分:1)
“now()在时区..........”看起来很像SQL,它应该是用双引号括起来的Python字符串,而不是简单的单词。
答案 1 :(得分:1)
我认为在文件bpl.py中的create function中,你得到的division_id是false,你试图浏览一个非类型对象的记录,然后尝试写入它。请检查您是否为division_id的正确ID。