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

Add recursive search for Odoo modules in code workspace setup #402

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vasi26ro
Copy link

@vasi26ro vasi26ro commented Sep 2, 2023

Summary
This pull request aims to align the directory structure of local Odoo projects with that of projects hosted on odoo.sh that use submodules. Specifically, it introduces a recursive search function to find Odoo modules in the given path, improving the write_code_workspace_file function.

Changes
Added find_odoo_modules function to recursively search for Odoo modules.
Modified write_code_workspace_file to utilize find_odoo_modules for more accurate directory mapping.

Motivation
When working with Odoo projects that are hosted on odoo.sh and use submodules, the directory structure can become complex. This change ensures that the local development environment mimics the structure of odoo.sh as closely as possible, making it easier to manage and navigate through various Odoo modules.

Example of addons.yml:

repo1: ["*"]
repo2: ["module1", "module2"]
repo3/user1/repo1: ["*"]

Please review the changes and let me know if further adjustments are needed.

Thank you!

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

Successfully merging this pull request may close these issues.

1 participant