Skip to content

[FW][FIX] conf.py: check odoo_dir is a real Odoo sources dir #1341

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

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Nov 29, 2021

In conf.py, we try to find a Odoo sources folder among odoo and ../odoo directories without really checking that they really are
Odoo sources folders, leading to doc generation error if it's not the case.

So, to improve that, this commit checks that the selected Odoo sources folder contains odoo-bin.

Forward-Port-Of: #1340
Forward-Port-Of: #1333

@fw-bot fw-bot requested a review from a team as a code owner November 29, 2021 11:01
@robodoo
Copy link
Collaborator

robodoo commented Nov 29, 2021

@fw-bot
Copy link
Collaborator Author

fw-bot commented Nov 29, 2021

Ping @remybar, @AntoineVDV cherrypicking of pull request #1333 failed.

stderr:

12:01:56.771903 git.c:344               trace: built-in: git cherry-pick 1ab1f2de4743ac221381924e8e8a2b41e4083289
error: could not apply 1ab1f2de... [FIX] conf.py: check odoo_dir is a real Odoo sources dir
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
----------
status:

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

In `conf.py`, we try to find a Odoo sources folder among `odoo` and
`../odoo` directories without really checking that they really are
Odoo sources folders, leading to doc generation error if it's not the case.

So, to improve that, this commit checks that the selected Odoo sources folder
contains `odoo-bin`.

While we're at it, the logging is also improved to always display the
matching odoo sources' folder and version.

X-original-commit: 57e1e31
Co-authored-by: Antoine Vandevenne <anv@odoo.com>
@AntoineVDV AntoineVDV force-pushed the master-13.0-check_odoo_folder_contains_odoo_sources-bar-oB9m-fw branch from 4cde683 to 65e8bc8 Compare November 29, 2021 12:33
@AntoineVDV
Copy link
Collaborator

@robodoo r+

robodoo pushed a commit that referenced this pull request Nov 29, 2021
In `conf.py`, we try to find a Odoo sources folder among `odoo` and
`../odoo` directories without really checking that they really are
Odoo sources folders, leading to doc generation error if it's not the case.

So, to improve that, this commit checks that the selected Odoo sources folder
contains `odoo-bin`.

While we're at it, the logging is also improved to always display the
matching odoo sources' folder and version.

closes #1341

X-original-commit: 57e1e31
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne <anv@odoo.com>
@robodoo robodoo closed this Nov 29, 2021
@robodoo robodoo temporarily deployed to merge November 29, 2021 12:41 Inactive
@robodoo robodoo added the 15.1 label Nov 29, 2021
@fw-bot fw-bot deleted the master-13.0-check_odoo_folder_contains_odoo_sources-bar-oB9m-fw branch December 13, 2021 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants