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() 方法。但它给出了上述错误并需要对其进行排序。请给我建议并解释 write() 方法需要传递哪些参数(cr、uid 除外)。
bpl.py 中的第 100 行
好的,它的排序friend.issue与我在数据库中输入的数据。要读取的数据是null。所以返回false并且错误是这样的:-)