-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Properly support python namespace package when detecting the od…
…oo addon directory fixes #316
- Loading branch information
Showing
7 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages | ||
try: | ||
__import__("pkg_resources").declare_namespace(__name__) | ||
except ImportError: | ||
from pkgutil import extend_path | ||
|
||
__path__ = extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages | ||
try: | ||
__import__("pkg_resources").declare_namespace(__name__) | ||
except ImportError: | ||
from pkgutil import extend_path | ||
|
||
__path__ = extend_path(__path__, __name__) |
Empty file.
9 changes: 9 additions & 0 deletions
9
...t_odoo/test_repo_odoo_namespace/odoo/addons/test_namespace_package_module/__manifest__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
'name': 'Namespace package module for tests', | ||
'license': 'AGPL-3', | ||
'author': u'Vauxoo,Odoo Community Association (OCA)', | ||
'version': '12.0.1.0.0', | ||
'depends': [ | ||
'base', | ||
], | ||
} |
19 changes: 19 additions & 0 deletions
19
pylint_odoo/test_repo_odoo_namespace/odoo/addons/test_namespace_package_module/i18n/fr.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 1985-04-14 17:12+0000\n" | ||
"PO-Revision-Date: 1985-04-14 02:03+0000\n" | ||
"Last-Translator: Moisés López <moylop260@vauxoo.com>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: test_module | ||
#: model:ir.model.fields,field_description2:test_module.field_description2 | ||
#: model:ir.model.fields,field_description2:test_module.field_description2 | ||
#, python-format | ||
msgid "Correct variables %s" | ||
msgstr "Correct variables" |