pycharm-odoo
pycharm-odoo copied to clipboard
False positive inspection warning on search domain
on code:
item_domain = [('pricelist_id', 'in', self.settings_ids.pricelist_id.ids)]
...
item_domain.extend(['|', ('create_date', '>', last_check), ('write_date', '>', last_check)])
domain is marked as incorrect
Hello @jerzyk ,
What version of PyCharm are you using?
sorry, missed it, latest eap:
PyCharm 2025.1 EAP (Professional Edition)
Build #PY-251.18673.39, built on January 30, 2025
Source revision: b8ebe4d494b3c
Runtime version: 21.0.6+8-b825.77 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.3
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8096M
Cores: 14
Metal Rendering is ON
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Non-Bundled Plugins:
XPathView (251.18673.31)
com.intellij.aqua (251.18673.49)
com.intellij.ml.llm (251.18673.39)
com.intellij.grazie.pro (0.3.359)
net.seesharpsoft.intellij.plugins.csv (4.0.2)
com.jetbrains.lang.ejs (251.18673.35)
dev.ngocta.pycharm-odoo (2025.1.1.251)
tv.twelvetone.intellij.plugins.intellivue (1.2.25)
@jerzyk ,
This issue is caused by a change (feature) in PyCharm 2025.1: https://github.com/JetBrains/intellij-community/commit/ce5eb63faa8b9c782b57e32058f93e554f4c54f5#diff-1a636f8d84acee4a4df96d4baa2883e2ed1bb66a2bfdb3cd0d814a057d5246d5
I will investigate this further to find a solution.
Hello @jerzyk ,
The new version 2025.3.0 has been released to addess this issue.