Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It can't be used in vscode #60

Open
yao-big opened this issue Nov 9, 2023 · 14 comments
Open

It can't be used in vscode #60

yao-big opened this issue Nov 9, 2023 · 14 comments

Comments

@yao-big
Copy link

yao-big commented Nov 9, 2023

Enterprise version of odoo16

He can't recognize the addons directory.

My project directory is like this

image

@abdounasser202
Copy link

I have the same problem too, my odoo directory can't be recognized

@fda-odoo
Copy link
Collaborator

Hello @yao-big and @abdounasser202 ,

Unfortunately I can't reproduce your issue on Odoo 16. Can you:

  • ensure that you are taking the directory that contains the odoo-bin file?
  • remove the dots in your path and see if it solves the issue
  • tell me which OS are you using?

@yao-big
Copy link
Author

yao-big commented Nov 13, 2023

image
The source here is the source code of odoo

My main here is the startup file

Similar to an odoo bin file

image

@yao-big
Copy link
Author

yao-big commented Nov 13, 2023

@fda-odoo

@yao-big
Copy link
Author

yao-big commented Nov 13, 2023

I am using Mac bookpro m2

@abdounasser202
Copy link

@fda-odoo, it was not working on Kubuntu, but i tried in my personnal ubuntu pc, and it can recognize the directories

@fda-odoo
Copy link
Collaborator

Thank you for your feedback. I still don't really understand why Odoo has not been found.

Can you ensure that you select a directory that has:

  • the odoo-bin file
  • an "addons" folder
  • a "odoo/release.py" file

@abdounasser202 Do you use a different odoo on your personnal computer, or is the same file architecture? I'm guessing we have an issue with some OS here, we have to investigate

@abdounasser202
Copy link

I checked again and see that the odoo-bin file is not present in the folder i have in kubuntu

@yao-big i think the same issue applies to you

you should have the odoo-bin in your source directory, for example, try to clone the odoo branch you need from github and add this folder into your configuration

@fda-odoo thank you for your assistance, i will continue testing it from time to time

@fda-odoo
Copy link
Collaborator

@abdounasser202 Thank you for your feedback. I'm curious to know what is your setup. How did you install odoo on your Kubuntu?
We develop the extension with the repository architecture in mind, and not with pre-configured package (docker or other), and I would be interested to see which way did you choose.

@yao-big
Copy link
Author

yao-big commented Nov 14, 2023

@abdounasser202
The odoo bin file is located in the setup
I named the source code of odoo source

@yao-big
Copy link
Author

yao-big commented Nov 14, 2023

Traceback (most recent call last):
File "/Users/yao/.vscode/extensions/odoo.odoo-0.2.0/server/core/odoo.py", line 156, in initialize
Odoo.instance.build_database(ls, odooConfig)
File "/Users/yao/.vscode/extensions/odoo.odoo-0.2.0/server/core/odoo.py", line 202, in build_database
self.build_modules(ls)
File "/Users/yao/.vscode/extensions/odoo.odoo-0.2.0/server/core/odoo.py", line 368, in build_modules
dirs = os.listdir(path)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/yao/Documents/3.Work/htzr/tysj/tianyi_mes/odoo/addons'

@abdounasser202
Copy link

@fda-odoo my setup is a custom setup with docker
Basically, we run a setup that download all the requirements and then build the image
I was then binding the path to the odoo folder that has been downloaded, but it's not containing the odoo-bin

@yao-big for your case i think you should have the odoo-bin in the parent folder, whatever it is renamed to source or xyz
But i see your setup folder is another folder that may not contain any odoo addons

To do simple, just clone the odoo repo and bind your path there

@yao-big
Copy link
Author

yao-big commented Nov 15, 2023

@abdounasser202 I am using the enterprise version of odoo

@abdounasser202
Copy link

@yao-big Enterprise version is working with odoo community
I would suggest you to have something like this

your-project/
    odoo/   # this is odoo source code cloned from github
    enterprise/    # this is odoo enterprise code
    custom-addons/
    third-party-addons/

Then all you have to do is to add your odoo/ path to the configuration of your odoo-ls
And it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants