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
6737d378635e
Commit
6737d378635e
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
option to disable pythondevmode
parent
0a13a4032a9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!127
✨ option to disable pythondevmode
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+2
-0
2 additions, 0 deletions
NEWS.rst
odoo_scripts/docker_dev_start.py
+12
-3
12 additions, 3 deletions
odoo_scripts/docker_dev_start.py
with
14 additions
and
3 deletions
NEWS.rst
+
2
−
0
View file @
6737d378
...
...
@@ -13,6 +13,8 @@
Detect import errors in run_tests.
Add option to disable PYTHONDEVMODE.
16.6.0
------
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_dev_start.py
+
12
−
3
View file @
6737d378
...
...
@@ -42,5 +42,5 @@
_logger
=
logging
.
getLogger
(
__name__
)
__version__
=
"
3.
5
.0
"
__version__
=
"
3.
6
.0
"
__date__
=
"
2017-08-11
"
...
...
@@ -46,5 +46,5 @@
__date__
=
"
2017-08-11
"
__updated__
=
"
2022-08-
11
"
__updated__
=
"
2022-08-
25
"
def
__parser
(
project_name
:
str
)
->
ArgumentParser
:
...
...
@@ -363,6 +363,13 @@
help
=
"
marabunta force version argument (see marabunta documentation)
"
,
)
parser
.
add_argument
(
"
--no-pythondevmode
"
,
help
=
"
Do not set PYTHONDEVMODE
"
,
action
=
"
store_false
"
,
default
=
True
,
dest
=
"
python_dev_mode
"
,
)
return
parser
...
...
@@ -426,6 +433,7 @@
marabunta_db_user
=
nmspc
.
marabunta_db_user
marabunta_db_password
=
nmspc
.
marabunta_db_password
marabunta_force_version
=
nmspc
.
marabunta_force_version
python_dev_mode
=
nmspc
.
python_dev_mode
if
restore_filename
:
if
not
database
:
...
...
@@ -1063,7 +1071,8 @@
arg
.
append
(
f
"
--dev=
{
'
,
'
.
join
(
set
(
dev_opts
))
}
"
)
if
odoo_type
in
(
ODOO_8
,):
arg
.
append
(
"
--auto-reload
"
)
options
[
"
environment
"
][
"
PYTHONDEVMODE
"
]
=
1
if
python_dev_mode
:
options
[
"
environment
"
][
"
PYTHONDEVMODE
"
]
=
1
project_version
=
"
local
"
...
...
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