Skip to content
Snippets Groups Projects
Commit 61e81d7417c3 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:sparkles: load-language as given to odoo for language installation on a database

parent a0809e83926d
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,13 @@ ...@@ -234,6 +234,13 @@
action='store_false', action='store_false',
dest='dev', dest='dev',
) )
parser.add_argument(
'--load-language',
help="specifies the languages for the translations you want to be"
" loaded",
default=None,
dest='LOAD_LANGUAGE',
)
# TODO there are more # TODO there are more
odoo_log_levels = ['info', 'warn', 'debug', 'debug_sql'] odoo_log_levels = ['info', 'warn', 'debug', 'debug_sql']
parser.add_argument( parser.add_argument(
...@@ -373,6 +380,9 @@ ...@@ -373,6 +380,9 @@
if nmspc.log_level: if nmspc.log_level:
arg.append('--log-level') arg.append('--log-level')
arg.append(nmspc.log_level) arg.append(nmspc.log_level)
if nmspc.LOAD_LANGUAGE:
arg.append('--load-language')
arg.append(nmspc.LOAD_LANGUAGE)
# auto detect local ip # auto detect local ip
if use_host_network: if use_host_network:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment