pycharm-odoo
pycharm-odoo copied to clipboard
PyCharm plugin for Odoo
``` java.lang.Throwable: Assertion failed: Text of a single string literal node expected at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:465) at com.jetbrains.python.psi.PyStringLiteralUtil.getContentRange(PyStringLiteralUtil.java:77) at com.jetbrains.python.psi.impl.PyPlainStringElementImpl.getContentRange(PyPlainStringElementImpl.java:49) at com.jetbrains.python.psi.impl.PyStringLiteralDecoder.decodeContent(PyStringLiteralDecoder.java:70) at com.jetbrains.python.psi.impl.PyPlainStringElementImpl.getDecodedFragments(PyPlainStringElementImpl.java:43) at com.jetbrains.python.psi.impl.PyStringLiteralExpressionImpl.lambda$getDecodedFragments$2(PyStringLiteralExpressionImpl.java:78) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)...
Hi! I've been trying to make this work for years now, with no success. Pycharm stops fine on unhandled exceptions for projects outside Odoo, but it won't when debugging modules...
``` java.lang.IllegalArgumentException: recordId(4194391) is not yet allocated: allocated ids are all < 4187453 at com.intellij.openapi.vfs.newvfs.persistent.dev.blobstorage.StreamlinedBlobStorageHelper.checkRecordIdExists(StreamlinedBlobStorageHelper.java:398) at com.intellij.openapi.vfs.newvfs.persistent.dev.blobstorage.StreamlinedBlobStorageOverMMappedFile.readRecord(StreamlinedBlobStorageOverMMappedFile.java:200) at com.intellij.openapi.vfs.newvfs.persistent.dev.blobstorage.StreamlinedBlobStorageHelper.readRecord(StreamlinedBlobStorageHelper.java:216) at com.intellij.openapi.vfs.newvfs.persistent.AttributesStorageOverBlobStorage.readAttributeValue(AttributesStorageOverBlobStorage.java:1026) at com.intellij.openapi.vfs.newvfs.persistent.AttributesStorageOverBlobStorage.readAttributeRaw(AttributesStorageOverBlobStorage.java:134) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSAttributeAccessor.readAttributeRaw(PersistentFSAttributeAccessor.java:72) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSTreeRawAccessor.mayHaveChildren(PersistentFSTreeRawAccessor.java:118) at com.intellij.openapi.vfs.newvfs.persistent.FSRecordsImpl.mayHaveChildren(FSRecordsImpl.java:662) at...
I'm making this helper module ```python # -*- coding: utf-8 -*- from ast import literal_eval from odoo import api, models from odoo.osv import expression class CustomHelper(models.AbstractModel): # Private attributes _name...
Following your advice here https://github.com/odoo-ide/pycharm-odoo/issues/342#issuecomment-1594027932 Could be possible to have type hints for OCA components? For example, for this ``` class MyComponent(Component): _name = 'custom.comp.name' _usage = 'custom.comp.usage' ``` I'm...
Why can we just use the "Report and Clear All" button?  _Originally posted by @jcfernandez-890825 in https://github.com/odoo-ide/pycharm-odoo/issues/449#issuecomment-1878673728_
``` com.intellij.diagnostic.PluginException: Element: class dev.ngocta.pycharm.odoo.python.psi.OdooPyFunction #Python because: different providers: com.intellij.psi.SingleRootFileViewProvider{vFile=file:///Users/jerzyk/Projects/.../models/stock_reordering_rule.py, vFileId=85436, content=VirtualFileContent{size=10629}, eventSystemEnabled=true}(6c446ada); com.intellij.psi.SingleRootFileViewProvider{vFile=file:///Users/jerzyk/Projects/.../stock_reordering_rule.py, vFileId=85436, content=VirtualFileContent{size=10629}, eventSystemEnabled=true}(10cf5f6a) invalidated at: see attachment [Plugin: dev.ngocta.pycharm-odoo] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:99) at com.intellij.psi.util.PsiUtilCore.ensureValid(PsiUtilCore.java:467) at...
Odoov15 `odoo/addons/product/report/product_packaging.xml` 
``` PyCharm 2023.2.5 (Professional Edition) Build #PY-232.10227.11, built on November 13, 2023 Licensed to Juan Carlos Fernández You have a perpetual fallback license for this version. Subscription is active until...