Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
0f63cdaa
Commit
0f63cdaa
authored
6 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add code to use key pg.extensions from setup.cfg
parent
5e77de5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+2
-0
2 additions, 0 deletions
README.rst
do_tests.py
+7
-3
7 additions, 3 deletions
do_tests.py
with
9 additions
and
3 deletions
README.rst
+
2
−
0
View file @
0f63cdaa
...
...
@@ -120,6 +120,8 @@
list of modules to install (relative to project directory), those modules are the ones copied in the Dockerfile
odoo_type
type of odoo (odoo7, odoo8, odoo10, odoo11)
pg.extensions
postgresql extensions to install (unaccent is added automatically depending on odoo configuration)
Completion files for zsh
------------------------
...
...
This diff is collapsed.
Click to expand it.
do_tests.py
+
7
−
3
View file @
0f63cdaa
...
...
@@ -24,5 +24,5 @@
_logger
=
logging
.
getLogger
(
__name__
)
__version__
=
'
0.1.
0
'
__version__
=
'
0.1.
1
'
__date__
=
'
2018-04-13
'
...
...
@@ -28,5 +28,5 @@
__date__
=
'
2018-04-13
'
__updated__
=
'
2018-
07-31
'
__updated__
=
'
2018-
10-24
'
def
main
(
argv
=
None
):
# IGNORE:C0111
...
...
@@ -157,7 +157,6 @@
odoo_db_user
=
nmspc
.
db_user
odoo_db_password
=
nmspc
.
db_password
recreate_db
=
nmspc
.
createdb
extensions
=
[]
install_log_level
=
(
nmspc
.
log_level
if
nmspc
.
log_level
else
nmspc
.
install_log_level
)
...
...
@@ -195,6 +194,11 @@
c
.
get
(
'
odoo_scripts
'
,
'
postgresql_version
'
))
or
'
9.6
'
image
=
"
%s/%s:latest
"
%
(
registry
,
project
)
_logger
.
debug
(
"
Docker image: %s
"
,
image
)
extensions
=
(
c
.
has_section
(
'
odoo_scripts
'
)
and
c
.
has_option
(
'
odoo_scripts
'
,
'
pg.extensions
'
)
and
c
.
get
(
'
odoo_scripts
'
,
'
pg.extensions
'
).
split
()
or
[]
)
# read from odoo.conf if it exists
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment