Open yao-big opened 1 year ago
I have the same problem too, my odoo directory can't be recognized
Hello @yao-big and @abdounasser202 ,
Unfortunately I can't reproduce your issue on Odoo 16. Can you:
The source here is the source code of odoo
My main here is the startup file
Similar to an odoo bin file
@FDA-odoo
I am using Mac bookpro m2
@fda-odoo, it was not working on Kubuntu, but i tried in my personnal ubuntu pc, and it can recognize the directories
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:
@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
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
@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.
@abdounasser202 The odoo bin file is located in the setup I named the source code of odoo source
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'
@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
@abdounasser202 I am using the enterprise version of odoo
@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
Enterprise version of odoo16
He can't recognize the addons directory.
My project directory is like this