Skip to content

Commit 2bb69d6

Browse files
committed
0.12.0
1 parent 616fff0 commit 2bb69d6

File tree

3 files changed

+62
-28
lines changed

3 files changed

+62
-28
lines changed

changelog.md

Lines changed: 60 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
# Changelog
22

3-
## 0.10.2 - 2025/08/12 - Update code and fix
3+
## [0.12.0] - 2025/08/28 - PyCharm, Csv and configurations
4+
5+
This patch includes somes changes required for the new [PyCharm](https://github.com/odoo/odoo-ls-pycharm) plugin.
6+
We changed some keys in the configurations files to improve clarity and added a TomL schema helper. Install a TomL extension to get
7+
syntax diagnostics, as well as validation of your configuration files. (You'll have the best by installing "Even Better TOML" AND "Tombi" on vscode)
8+
9+
### PyCharm
10+
11+
- Start and manage the lifecycle of OdooLS in Pycharm.
12+
- Add a Profile Selector
13+
- Add a Crash Report
14+
- Add a webview to display configuration resumes.
15+
16+
### VsCode
17+
18+
- Code has been moved to its own repository: https://github.com/odoo/odoo-ls-vscode
19+
- Automatically link toml schema to odools.toml files
20+
21+
### Server
22+
23+
- New parameters available in configuration: "no_typeshed_stubs" that prevents the loading of typeshed stubs, if you want to provide yours, and "stdlib", that allows you to provide a different location for your stdlib stubs.
24+
- Remove parameter "add_workspace_addon_path" from configs. Addons path now contains the value "$autoDetectAddons" by default, that means that server will automatically try to detect addons. When setting addon paths in your configuration, you can add this value to the list to keep this behaviour.
25+
- Load CSV files and extract xml_id from it
26+
- Improve reloading and cache update of files with invalid syntax
27+
- Handle If..else statements with an empty bloc in the if and else (invalid ast)
28+
- OLS03020 is now evaluated later in the process to give accurate results
29+
- Improve dynamic reloading on creation of missing models
30+
31+
### Fixes
32+
33+
- Server will now search for stubs and additional files next to its exe, and not in the current working directory. If not present, it will search then in current working directory
34+
- Fix a version verification in is_inheriting method
35+
- Fix crashes that can happen if one of the following field has a value that is not of the right type ("False" instead of False for example): "comodel_name", "related", "compute", "delegate", "required", "default"
36+
37+
## [0.10.2] - 2025/08/12 - Update code and fix
438

539
### Upgrade
640

@@ -11,13 +45,13 @@
1145
- Invalid context value type that cause crashes (in Odoo < 18.0)
1246
- Fix the hook for the field 'global' on IrRule for versions < 18.1
1347

14-
## 0.10.1 - 2025/08/11 - Quick fix
48+
## [0.10.1] - 2025/08/11 - Quick fix
1549

1650
### Fixes
1751

1852
- Invalid context value type that can cause crashes.
1953

20-
## 0.10.0 - 2025/08/08 - Better configuration and XML features
54+
## [0.10.0] - 2025/08/08 - Better configuration and XML features
2155

2256
Following your feedbacks, we are adding some new features and ways to configure your odools.toml files. If you still think that some changes would be interesting, do not hesitate to contact us !
2357
Alongside these changes, we added some features to XML files, like gotodefinition, hover, and new diagnostics. Everything we want is not there yet, but it's coming soon!
@@ -66,13 +100,13 @@ We focused a lot too on improving the exactness of various diagnostics, so you s
66100
- Fix crash on reloading functions created by hooks (only in orm files)
67101
- Various things that would be too hard to explain here. You really read all the changelog?
68102

69-
## 0.8.1 - 2025/09/07 - Quick fix
103+
## [0.8.1] - 2025/09/07 - Quick fix
70104

71105
### Fix
72106

73107
- Fix an issue that prevent OdooLS to correctly detect Odoo Models on some version.
74108

75-
## 0.8.0 - 2025/04/07 - Configuration files and XML Support (part 1)
109+
## [0.8.0] - 2025/04/07 - Configuration files and XML Support (part 1)
76110

77111
This update introduces two new big changes in OdooLS.
78112

@@ -113,7 +147,7 @@ This is actually mainly used for new Odoo changes on master, and is not dynamica
113147
- Autocompletion is now better localized, and can not suggest variables declared later in a bloc.
114148
- Fix various borrow errors.
115149

116-
## 0.6.3 - 2025/23/05 - Bugfixs
150+
## [0.6.3] - 2025/23/05 - Bugfixs
117151

118152
### Fixs
119153

@@ -122,7 +156,7 @@ This is actually mainly used for new Odoo changes on master, and is not dynamica
122156
- Fix various crashes when hovering some part of the code
123157
- Provide PDB alongside exe on windows to get better tracebacks.
124158

125-
## 0.6.2 - 2025/28/04 - Bugfixs
159+
## [0.6.2] - 2025/28/04 - Bugfixs
126160

127161
### Fixs
128162

@@ -135,7 +169,7 @@ This is actually mainly used for new Odoo changes on master, and is not dynamica
135169
- Fix crash on lazy loading invalid `__all__` variable
136170
- Clean some logs
137171

138-
## 0.6.1 - 2025/24/04 - File cache option and bugfixs
172+
## [0.6.1] - 2025/24/04 - File cache option and bugfixs
139173

140174
### Key features
141175

@@ -160,7 +194,7 @@ default to not stress your disk, but you can activate it in your settings if you
160194
- Fix path comparison. "account_account" will not be considered below "account" because it shares the same start. Now path components are properly used
161195
for the comparison.
162196

163-
## 0.6.0 - 2025/15/04 - Entrypoints and NOQA Update
197+
## [0.6.0] - 2025/15/04 - Entrypoints and NOQA Update
164198

165199
### Key features
166200

@@ -222,7 +256,7 @@ still rely on the disk path to identify a file (will change in next updates)
222256
- Check that related field is the same type
223257
- New errors to express the invalid dot notation in strings used for related, domains...
224258

225-
## 0.4.1 - 2025/12/02
259+
## [0.4.1] - 2025/12/02
226260

227261
Small patch that address crashes we got from your reports
228262

@@ -250,7 +284,7 @@ Small patch that address crashes we got from your reports
250284
- Test if odoo package is found or not and log it if not
251285
- Fix hook that transform Cursor into TestCursor in tests directories
252286

253-
## 0.4.0 - 2025/05/02
287+
## [0.4.0] - 2025/05/02
254288

255289
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)
256290
Some configuration migrations could fail while upgrading from the Python version. We apologize in advance if you have to set up them again !
@@ -295,7 +329,7 @@ computation on each change.
295329
- fix crash on importation of compiled files
296330
- Remove autocompletion items that are not in module dependencies
297331

298-
## 0.2.8 - 2024/18/12
332+
## [0.2.8] - 2024/18/12
299333

300334
### VsCode
301335

@@ -337,7 +371,7 @@ computation on each change.
337371
- New hook for Odoo registry.
338372
- Add "magic" fields to models (id, create_date, etc...)
339373

340-
## 0.2.7 - 2024/31/10
374+
## [0.2.7] - 2024/31/10
341375

342376
### Server
343377

@@ -362,7 +396,7 @@ computation on each change.
362396
- Add deprecation warning on any use/import of odoo.tests.common.Form after Odoo 17.0
363397
- 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'
364398

365-
## 0.2.6 - 2024/01/10
399+
## [0.2.6] - 2024/01/10
366400

367401
### Server
368402

@@ -379,7 +413,7 @@ but the code is ready to support new python expressions!
379413
- Better logs for investigations: used settings, build name, etc...
380414

381415

382-
## 0.2.5 - Beta Candidate - 2024/07/10
416+
## [0.2.5] - Beta Candidate - 2024/07/10
383417
### Rustpocalypse
384418

385419
This update bring a completely new rewritten version of the extension.
@@ -411,7 +445,7 @@ As this is a first version, there is some known issues:
411445
### Fixs
412446
- Odoo configuration selected does not match the odoo path popup fixed
413447

414-
## 0.2.4 - 2023/01/10
448+
## [0.2.4] - 2023/01/10
415449

416450
### Fixs
417451

@@ -422,7 +456,7 @@ As this is a first version, there is some known issues:
422456
- Fix crash when creating a symbol that was previously missing
423457
- Fix infinite log generation on BrokenPipeError
424458

425-
## 0.2.3 - 2023/12/19
459+
## [0.2.3] - 2023/12/19
426460

427461
Last update of 2023 ! We wish you all an happy new year !
428462

@@ -446,7 +480,7 @@ This value is used to for the autocompletion, and so you won't have suggestions
446480
- Update int to proper enums in module.py for the 'severity' option of diagnostics
447481

448482

449-
## 0.2.2 - 2023/11/20
483+
## [0.2.2] - 2023/11/20
450484

451485
### VsCode
452486

@@ -457,7 +491,7 @@ This value is used to for the autocompletion, and so you won't have suggestions
457491
- update code to work with cattrs==23.2.1
458492
- Fix diagnostic crash in non-module addon
459493

460-
## 0.2.1 - 2023/11/15
494+
## [0.2.1] - 2023/11/15
461495

462496
This version contains various fixs based on the reports we got. No new features here.
463497

@@ -469,7 +503,7 @@ This version contains various fixs based on the reports we got. No new features
469503
- Fix crash on some file edit due to the thread queue that was missing some context
470504
- Fix character index on Hover and Definition feature that created a crash if you hover the last character of the file
471505

472-
## 0.2.0 - 2023/11/07
506+
## [0.2.0] - 2023/11/07
473507

474508
Update to version numbers: "0.x.0" if x is even, it will be a beta (or pre-release) version, odd numbers will be release version.
475509
There will be no more tag to version (-beta or -alpha)
@@ -499,15 +533,15 @@ There will be no more tag to version (-beta or -alpha)
499533
- Python 3.10+: IndentationError is using -1 character index (despite the documentation indicating [1-MAX_INT]), so a special case has been added to handle it.
500534
- The server will not try to release a non-acquired lock anymore
501535

502-
## 0.1.1-alpha.1 - 2023/09/27
536+
## [0.1.1-alpha.1] - 2023/09/27
503537

504538
### Fixs
505539
- Language server: Various fixs on asynchronous jobs:
506540
- prevent EventQueue to process event without valid lock (startup crash)
507541
- prevent EventQueue to hold the access during update
508542
- A acquired lock on a queue can not be on a Null queue anymore
509543

510-
## 0.1.1-alpha.0 - 2023/09/23
544+
## [0.1.1-alpha.0] - 2023/09/23
511545

512546
### VSCode
513547
#### Configurations
@@ -545,7 +579,7 @@ There will be no more tag to version (-beta or -alpha)
545579
- Prevent any completion/hover feature on non-py file
546580

547581

548-
## 0.1.0-alpha.3 - 2023/08/28
582+
## [0.1.0-alpha.3] - 2023/08/28
549583
Last update to the 0.1.0 that is discontinued now and won't go to beta phase. We will wait at least for the 0.1.1 before testing a beta version (for the venv support)
550584

551585
### VSCode
@@ -559,22 +593,22 @@ Last update to the 0.1.0 that is discontinued now and won't go to beta phase. We
559593
- Improve SyntaxError reporting and make code more robust to invalid files (python 3.10+)
560594

561595

562-
## 0.1.0-alpha.2 - 2023/08/22
596+
## [0.1.0-alpha.2] - 2023/08/22
563597

564598
### Language Server
565599
#### Fixs
566600
- Fix crash on missing index on remove_symbol
567601
- Fix crash on external dependencies evaluation on references
568602

569603

570-
## 0.1.0-alpha.1 - 2023/08/21
604+
## [0.1.0-alpha.1] - 2023/08/21
571605

572606
### VSCode
573607
- Prevent the crash reporter to crash if the opened file is not a real file (like config page)
574608
- Prevent the language server to crash when evaluating a non-workspace file, but log it instead (help debugging the configurations)
575609

576610

577-
## 0.1.0-alpha.0 - 2023/08/13
611+
## [0.1.0-alpha.0] - 2023/08/13
578612

579613
### VSCode
580614
- Configuration page, that allow editing configurations

server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "odoo_ls_server"
3-
version = "0.10.2"
3+
version = "0.12.0"
44
edition = "2021"
55
authors = ["Odoo"]
66
readme = "../README.md"

server/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use core::fmt;
44
use byteyarn::{yarn, Yarn};
55

66
pub const EXTENSION_NAME: &str = "Odoo";
7-
pub const EXTENSION_VERSION: &str = "0.10.2";
7+
pub const EXTENSION_VERSION: &str = "0.12.0";
88

99
pub const DEBUG_ODOO_BUILDER: bool = false;
1010
pub const DEBUG_MEMORY: bool = false;

0 commit comments

Comments
 (0)