![](/img/trans.png)
[英]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.