odoo-ls icon indicating copy to clipboard operation
odoo-ls copied to clipboard

The Odoo configuration selected does not match the odoo path in the workspace. Would you like to change it?

Open HBenzaoui opened this issue 1 year ago • 3 comments

Describe the bug The problem appears to be happening because the workspace path in the VS Explorer is different then the odoo folder path of the extension, however this could be a problem for a lot of people as it's a good practice to have the custom addons folder and the odoo.conf file out of the odoo project folder

To Reproduce I think it would be better if the extension ignores the different between the odoo folder path and the workspace.

The Message error 1

The Odoo Extension configuration 2

**The Odoo project workspace ** 3

Thanks

HBenzaoui avatar Jan 18 '24 00:01 HBenzaoui

Hello! This notification is made to prevent people from using a configuration that does not match the odoo in their workspace (for example if you made a configuration for Odoo 16 and you open a workspace with Odoo 15 you would like to know that it'll not work), it should detect the odoo even if it's not at the root of the workspace. I can't reproduce the issue (on windows with a similar workspace) Is your workspace c:odoodev\16.0 or is it a different path? Thanks

Louciole avatar Jan 18 '24 10:01 Louciole

Hello, Yes my workspace as it's shown in the explorer is "C:\odoodev\16.0" while the odoo project path is "C:\odoodev\16.0\odoo"

HBenzaoui avatar Jan 19 '24 15:01 HBenzaoui

Hello, thanks for reporting the issue! It should be resolved in the next release, If the issue still occur don't hesitate to make a new issue! Have a nice day

Louciole avatar Jan 22 '24 12:01 Louciole