[英]ProgrammingError: operator does not exist: integer = boolean - Odoo v9 community
[英]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.
我试图覆盖写入功能。 因为我需要更新另一个模型的(bpl.company.define)列。所以我使用了write()方法。但它给出了上面的错误并需要对它进行排序。 请建议我和explainint需要为write()方法传递哪些参数(cr,uid除外)。
bpl.py中的第100行
好吧,我在数据库中输入的数据排序了friend.issue。要读取的数据是null。那就是返回false,错误就是这样:-)
“now()在时区..........”看起来很像SQL,它应该是用双引号括起来的Python字符串,而不是简单的单词。
我认为在文件bpl.py中的create function中,你得到的division_id为false,你试图浏览一个无类型对象的记录,然后尝试写入它。 请检查您是否为division_id的正确ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.