-
Notifications
You must be signed in to change notification settings - Fork 5
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
Automatic monkey patching, workaround for Odoo 10 issue, and tests! #3
Merged
Commits on Sep 12, 2017
-
This is an attempt to fix acsone/setuptools-odoo#10 By installing a .pth file named zzz_odoo_autodiscover.pth that will run last, but before the main program starts, we can remove the dummy odoo package that is created by the *nspkg.pth files from setuptools. That leaves a chance to odoo/__init__.py to run when the main program imports odoo. The declare_namespace in odoo/addons/__init__.py will then repopulate odoo.addons.__path__. Yes, that is tricky... it's the price to live on the border line where. To be spec compliant, odoo/__init__.py should be empty. A better solution is to be found for v11.
Configuration menu - View commit details
-
Copy full SHA for fe0366a - Browse repository at this point
Copy the full SHA fe0366aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e18d296 - Browse repository at this point
Copy the full SHA e18d296View commit details
Commits on Sep 14, 2017
-
Configuration menu - View commit details
-
Copy full SHA for c7cc273 - Browse repository at this point
Copy the full SHA c7cc273View commit details
Commits on Sep 15, 2017
-
import hook: delete odoo.addons too
otherwise we are in a situation with a child ns package without parent, which can confuse python
Configuration menu - View commit details
-
Copy full SHA for 1e76a53 - Browse repository at this point
Copy the full SHA 1e76a53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f7d806 - Browse repository at this point
Copy the full SHA 5f7d806View commit details -
remove dependency on odoo so odoo-autodiscover can be installed before odoo
Configuration menu - View commit details
-
Copy full SHA for c4a960f - Browse repository at this point
Copy the full SHA c4a960fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3acab5 - Browse repository at this point
Copy the full SHA e3acab5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ca2607 - Browse repository at this point
Copy the full SHA 3ca2607View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3be0cb - Browse repository at this point
Copy the full SHA a3be0cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b42ac8 - Browse repository at this point
Copy the full SHA 3b42ac8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9b4d63 - Browse repository at this point
Copy the full SHA b9b4d63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8461035 - Browse repository at this point
Copy the full SHA 8461035View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6bbc6 - Browse repository at this point
Copy the full SHA ad6bbc6View commit details
Commits on Sep 16, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 16775be - Browse repository at this point
Copy the full SHA 16775beView commit details -
use virtualenv instead of venv on python3 too
Because with tox and ubuntu 16, pip does not get installed in the venv...
Configuration menu - View commit details
-
Copy full SHA for 3f86708 - Browse repository at this point
Copy the full SHA 3f86708View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ab1ec2 - Browse repository at this point
Copy the full SHA 2ab1ec2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81bf182 - Browse repository at this point
Copy the full SHA 81bf182View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32b27dd - Browse repository at this point
Copy the full SHA 32b27ddView commit details -
no need to monkey patch when we have post import hooks
Don't attempt to use namespace packages anymore for odoo.addons. It's definitely impossible as long as there is code in odoo/__init__.py We simply explore sys.path to find odoo/addons directories and add that to Odoo's ad_paths.
Configuration menu - View commit details
-
Copy full SHA for 9f65033 - Browse repository at this point
Copy the full SHA 9f65033View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf25808 - Browse repository at this point
Copy the full SHA cf25808View commit details
Commits on Sep 17, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 85ea86f - Browse repository at this point
Copy the full SHA 85ea86fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe4471a - Browse repository at this point
Copy the full SHA fe4471aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6ec794 - Browse repository at this point
Copy the full SHA c6ec794View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6c7f34 - Browse repository at this point
Copy the full SHA f6c7f34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64db9c4 - Browse repository at this point
Copy the full SHA 64db9c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1f38ee - Browse repository at this point
Copy the full SHA a1f38eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed6438c - Browse repository at this point
Copy the full SHA ed6438cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74ca923 - Browse repository at this point
Copy the full SHA 74ca923View commit details -
Configuration menu - View commit details
-
Copy full SHA for 294210f - Browse repository at this point
Copy the full SHA 294210fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2926aca - Browse repository at this point
Copy the full SHA 2926acaView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.