Skip to content

Releases: odoo/odoo-ls

0.6.3 - Beta

23 May 08:55
Compare
Choose a tag to compare
0.6.3 - Beta Pre-release
Pre-release

0.6.3 - 2025/23/05 - Bugfixs

Fixs

  • Log instead of crash if a file is not in cache anymore as it can happen in some normal situations where chache is invalidated
  • Fix various borrow errors on 'go to definition' feature
  • Fix various crashes when hovering some part of the code
  • Provide PDB alongside exe on windows to get better tracebacks.

0.6.2 - Beta

28 Apr 11:11
Compare
Choose a tag to compare
0.6.2 - Beta Pre-release
Pre-release

0.6.2 - 2025/28/04 - Bugfixs

Fixs

  • Fix crash on empty odoo path
  • Fix crash while autocomplete on an empty file
  • Fix crash on autocompletion in some wase where the needed files are not built already
  • Fix crash on module search that could return namespaces instead of modules
  • Fix diagnostics range in manifest depends
  • Add missing error code in error_code.md
  • Fix crash on lazy loading invalid __all__ variable
  • Clean some logs

0.6.1 - Beta

24 Apr 12:27
Compare
Choose a tag to compare
0.6.1 - Beta Pre-release
Pre-release

0.6.1 - 2025/24/04 - File cache option and bugfixs

Key features

  • New option that will move file cache from RAM to disk (reduce memory usage by ~30%, but will increase disk access). It is off by
    default to not stress your disk, but you can activate it in your settings if you are on a computer with limited RAM amount.
  • This patch focus on bugs you reported from the 0.6.0. Thank you for sending us your crash report, it helps us building a stable tool !

Server

  • New file cache option to move file cache from RAM to disk. Off by default

Fixs

  • Fix an issue that was removing all diagnostics on settings change for no reason
  • Fix a crash on evaluation refresh
  • Fix transformation of path from addon entry to main entry
  • Fix creation of entryPoint for namespace symbols
  • Fix an issue that prevented the server to mark files as closed, creating a crash on reopening.
  • Fix parsing of __manifest__.py and __init__.py in custom entry point. It fixes crash when opening files outside of the config
  • Fix crash on parsing empty __manifest__.py file
  • Fix reloading of custom entry point
  • Fix path comparison. "account_account" will not be considered below "account" because it shares the same start. Now path components are properly used
    for the comparison.

0.6.0 - Beta

15 Apr 15:32
Compare
Choose a tag to compare
0.6.0 - Beta Pre-release
Pre-release

0.6.0 - 2025/15/04 - Entrypoints and NOQA Update

Key features

  • OdooLS is now able to run on any python file, even if this python file is not part of your odoo setup. It will then run
    like a classical LSP and provide you hover, autocompletion, gotodefinition, etc... but without any odoo knowledge.
  • As the core structure should now be in its nearly final form and because of the previous point, OdooLS now has a base test suite to ensure we are keeping every feature stable patch after patch ! These will grow in the future.
  • Support for #noqa directive, on file, classes, function or line, with or without error codes
  • OdooLS can now handle Walrus operator ⊹╰(⌣ʟ⌣)╯⊹
  • OdooLS now has improved inferencer engine and can parse way more expressions and statements
  • Various cache and algorithm improvements speed up the server by ~30%, but these ~30% are lost with new features and required parsing...
  • OdooLs is now 50% faster on Windows due to disk access improvements. It is nearly not impacting Linux and Macos distribution however.
  • Memory usage has been improved by ~6%
  • In the end, building time is 10% slower due to new features
  • Handle {workspaceFolder:directory} variable in path configurations.

Server

  • Introduce EntryPoints. OdooLS will now provide features for a file depending on its entrypoint: It can be the main entryPoints (usually the odoo project, with odoo/main.py), or a single-file entrypoint, the current file. Depending on this context, the server
    can act diffently and then work on any python file, even out of the odoo structure. Temporary files are not yet handled however, we
    still rely on the disk path to identify a file (will change in next updates)
  • Improve Evaluations by handling following Expressions and Statements:
    • Number literals: Float and Complex
    • If blocks
    • unary operators
    • constants (ellipsis and None)
    • basic FString
    • typing.Self
  • Make results unique in model name hover
  • Add a cache to import resolver, speeding up the process.
  • Add traceback to error info in crash report
  • Use Yarn instead of String to store small names of symbols to speed up and improve memory usage
  • Add hover and gotodef feature to decorators (@api.depends,...), to related fields, comodel_name and model strings before arguments.
  • Update Ruff Parser to 0.11.4
  • Improve reactivity of server on typing in 'adaptive' mode
  • Support for NOQA
  • Odoo step has been merged with Arch Eval step, resulting in a process in 3 steps instead of 4.

Server Fixs

  • A module is now automatically (re)imported if reloaded or created if it is in addons path.
  • Fix dependency graph on inheritance and imports.
  • Fix TestCursor hook behaviour to show right Cursor class in tests directories
  • Fix BorrowError on FileManager clear method
  • Hover and GotoDefinition features are now working in .pyi files
  • Evaluation should correctly take into account all base classes of an object/model
  • Fix this changelog filename to be able to publish on VsCodium
  • Fix infinite loop on variable evaluation

Vscode Fixs

  • Prevent throwing an error notification when the client is stopping
  • Improve reactivity of the server if an interruption is coming during processing or shutdown event

New diagnostics / odoo helpers

  • Check that the manifest doesn't contain the same key twice
  • In a compute function, check that you don't assign another variable that the one you are computing
  • Check that comodel_name on related fields is valid
  • Check that related field is the same type
  • New errors to express the invalid dot notation in strings used for related, domains...

0.4.1 - Beta

12 Feb 13:51
Compare
Choose a tag to compare
0.4.1 - Beta Pre-release
Pre-release

0.4.1 - 2025/12/02

Small patch that address crashes we got from your reports

Vscode Fixs

  • validate paths on config view opening

Server

  • Server will now answer to DocumentSymbol requests and give you a tree os symbols that you can find in a file.
  • Add validation and diagnostics on some missing Python statements (match, ...)
  • Better error message if missing typeshed

Server Fixs

  • crash fix: Handle new odoo structure available on master
  • crash fix: Do not evaluate documents that are not saved on disk and has an invalid path (will be improved later)
  • crash fix: Do not assume that base class is always valid, and silently ignore an invalid base class
  • crash fix: Do not evaluate architecture of a file if the hash of file has changed since the first building
  • crash fix: url encode paths to handle spaces or invalid characters in uris
  • crash fix: add a guard against empty contexts while getting symbol
  • crash fix: Fix crash on cyclic references involving only functions (temp fix before a proper implementation)
  • Fix multiple inference instance evaluation
  • add context information to be able to resolve ": Self" return value for functions
  • Test if odoo package is found or not and log it if not
  • Fix hook that transform Cursor into TestCursor in tests directories

0.4.0

06 Feb 11:01
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

0.4.0 - 2025/05/02

0.4.0 is the first Rust version of the tool that is coming to Beta. It means that if you didn't update to alpha version manually, this changelog is new for you since the 0.2.4 version (last published Python version of the tool, not maintained anymore)
Some configuration migrations could fail while upgrading from the Python version. We apologize in advance if you have to set up them again !

VsCode

  • Add a commmand to restart the server manually
  • Updated welcome page to reflect new changes
  • Remove deprecated views
  • Remove "afterDelay" option, in favor of "adaptive" option. Threads are way more reactives than before and "adaptive" should
    be enough in all cases.
  • handle installation of python extension while Odoo is running

VsCode Fix

  • Fix the extension hanging while the server starts

Server

  • improve odoo detection to handle nightly builds of Odoo.
  • Return Class location on definition request of model name (strings)
  • Server will auto reset if too many changes occur in the workspace (git checkout detection purpose)
  • improve the rebuild queue, by putting functions in it with a module dependency, instead of the whole file. It lowers the needed
    computation on each change.
  • onSave settings will not trigger a rebuild anymore if ast in the file is invalid
  • Improve range of link given by GoToDefinition on packages
  • precompute model dependencies to improve performances
  • Add various odoo api method signatures (with_context...)
  • Add search domains diagnostics
  • Add search domains autocompletion
  • Add search domains GotoDefinition
  • Various hover display improvements: syntax, values and infered types on functions
  • Implement _inherits logic
  • Improve internal context usage to correctly reflect what contains the current parsing
  • Remove usage of the custom route Odoo/getPythonPath, and now using lsp default configuration
  • Improve message managements to make threads more reactive, and so the extension
  • use start of expr range to avoid some out of scope issues in autocompletion
  • Server do not restart anymore but reset on python path update

Server fixs

  • fix crash on importation of compiled files
  • Remove autocompletion items that are not in module dependencies

0.2.8 - alpha

18 Dec 16:09
Compare
Choose a tag to compare
0.2.8 - alpha Pre-release
Pre-release

0.2.8 - 2024/18/12

VsCode

  • addon paths in configurations can now contains variables: ${workspaceFolder} and ${userHome} are available.
  • search for valid addon path in parent folders too.
  • New popup windows that will suggest you to disable your actual python language server for your workspace if any is active (only for Python extension).
  • Fix hanging if popup window stay opened.
  • Fix infinite reload issue

Server

  • Improve autocompletion to take base classes and comodels.
  • Add inheritance information in hover for models.
  • Adapt the architecture to store function arguments.
  • Parse and evaluate function calls according to the function signature. Actually limited to domains and args counts.
  • New domain validation: validate structure, operators and fields. Composed fields are not validated for now.
  • Autocompletion that contains "." or that complete a string with a "." will not duplicate elements anymore.
  • Improve function return type syntax in Hover feature.
  • Implement super() evaluation.
  • Handle @ overload and @ classmethod decorator

Server Fixs

  • Autocompletion will not raise an exception if the request is done outside of odoo.
  • Gotodefinition will skip evaluation that lead to the same place
  • Fix range on GotoDefinition for symbol that has multiple evaluation.
  • Prevent parsing docstrings as markdown codeblocks
  • Make read thread able to create delayed tasks.
  • correctly skip arch step for syntaxically incorrect files.
  • Avoid range evaluations on files.
  • Allow not imported files to be reloaded
  • Remove duplicates in autocompletion results due to diamond inheritance
  • Change classes structure to keep inheritance order (HashSet to Vector)
  • Incorrect "Base class not found" diagnostic

New diagnostics / odoo helpers

  • New signature for "browse" on BaseModel.
  • New hook for Odoo registry.
  • Add "magic" fields to models (id, create_date, etc...)

0.2.7 - alpha

04 Nov 09:53
Compare
Choose a tag to compare
0.2.7 - alpha Pre-release
Pre-release

Changelog

0.2.7 - 2024/31/10

Server

  • Now include macos binary (arm processors)
  • Any requests (Hover, autocompletion, ...) is now able to cut any running rebuild, resulting in a way more reactive experience.
  • Basic autocompletion implementation. The server should be able to parse ast and understand what you want to autocomplete. However, the results could be incomplete or incorrect at this point, we will improve that in the next versions
  • Use hashs to detect if opened files are differents than the disk version to avoid useless computations.
  • Prevent file update if the change is leading to syntaxically wrong ast. The index will be rebuilt only if user fix the syntax errors. It avoid useless computations
  • Update file cache immediatly, even if reload are delayed by settings. It allows autocompletion to be aware of changes.
  • Delay the symbol cleaning to the file reload and not on update, to not drop symbols that could be used by autocompletion or other requests
  • Now handle setups where odoo community path or addons path are paths that are in sys.path.
  • Fix evaluation of classes having a base class with the same name.
  • Fix parsing of empty modules with only a manifest file
  • Basic With statement evaluation
  • Improve Hover informations for imports expressions (especially for files, packages, namespaces)
  • use root_uri as fallback if no workspace_folder is provided (root_uri is deprecated though)
  • Implement a profiling setup with iai-callgrind
  • various cleaning

New diagnostics / odoo helpers

  • Add deprecation warning on any use/import of odoo.tests.common.Form after Odoo 17.0
  • Autocompletion of Model names in self.env[""] expressions. Autocompleted model names will indicates if a new dependency is required. This comes with a new settings allowing you to choose between 'only available models' or 'all models with an hint'

0.2.6 - alpha

01 Oct 13:34
Compare
Choose a tag to compare
0.2.6 - alpha Pre-release
Pre-release

Alpha package - will not be pusblished on marketplace as it is

0.2.6 - 2024/01/10

Server

  • Add Function body evaluation. This is the major content of this update. The server has now the required structure to parse function
    body and infer the return value of a function. This feature is rudimentary and a lot of function will still have a return value of None,
    but the code is ready to support new python expressions!
  • fix python path acquisition from vscode settings
  • Ignore git file update to avoid useless reload of the index.
  • Add various new diagnostics
  • fix deadlock that can sometimes occurs in some file update.
  • Add support for dynamic symbols. Dynamic symbols are symbols that are added on an object after its declaration
  • improve dependency graph to support models
  • Server now reacts to WorkspaceDidChangedWatchedFiles, and will restart automatically on Odoo version change
  • Better logs for investigations: used settings, build name, etc...

0.2.4

10 Jan 15:41
Compare
Choose a tag to compare
0.2.4 Pre-release
Pre-release

0.2.4 - 2023/01/10

Fixs

  • Fix crash on get_loaded_part_tree if addon path has not been found
  • Fix crash on autocompletion if opened file is not found (out of workspace for example)
  • Allow path to Odoo community to end with a /
  • Fix crash when hovering Relational field declaration
  • Fix crash when creating a symbol that was previously missing
  • Fix infinite log generation on BrokenPipeError