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
bd31932b
Commit
bd31932b
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
docker_dev_start: automatically add werkzeug to the dev options
parent
dc60eb0f
No related branches found
No related tags found
1 merge request
!196
✨ docker_dev_start: automatically add werkzeug to the dev options
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+14
-0
14 additions, 0 deletions
NEWS.rst
odoo_scripts/docker_dev_start.py
+7
-3
7 additions, 3 deletions
odoo_scripts/docker_dev_start.py
with
21 additions
and
3 deletions
NEWS.rst
+
14
−
0
View file @
bd31932b
...
...
@@ -2,6 +2,20 @@
History
=======
20.6.0
------
docker_dev_start:
- add werzeug in odoo 15+ to the automatically enabled dev options
20.5.1
------
docker_dev_start:
- fix path for volume
20.5.0
------
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_dev_start.py
+
7
−
3
View file @
bd31932b
...
...
@@ -54,5 +54,5 @@
_logger
=
logging
.
getLogger
(
__name__
)
__version__
=
"
3.1
3.1
"
__version__
=
"
3.1
4.0
"
__date__
=
"
2017-08-11
"
...
...
@@ -58,5 +58,5 @@
__date__
=
"
2017-08-11
"
__updated__
=
"
2023-0
6
-2
3
"
__updated__
=
"
2023-0
7
-2
1
"
def
__parser
(
project_name
:
str
)
->
ArgumentParser
:
...
...
@@ -1191,7 +1191,7 @@
# developer mode options
if
dev
:
if
odoo_type
in
(
ODOO_10
,
ODOO_11
,
ODOO_13
,
ODOO_14
,
ODOO_15
,
ODOO_16
):
if
odoo_type
in
(
ODOO_10
,
ODOO_11
,
ODOO_12
,
ODOO_13
,
ODOO_14
,
ODOO_15
,
ODOO_16
):
# automatically add reload if not already asks for
if
not
any
(
opt
in
dev_opts
for
opt
in
(
"
all
"
,
"
reload
"
)):
dev_opts
.
append
(
"
reload
"
)
...
...
@@ -1204,6 +1204,10 @@
for
debugger
in
(
"
pubd
"
,
"
wdb
"
,
"
ipdb
"
,
"
pdb
"
,
"
all
"
)
):
dev_opts
.
append
(
"
pdb
"
)
# Add werkzeug if not already enabled
if
odoo_type
not
in
(
ODOO_10
,
ODOO_11
,
ODOO_12
,
ODOO_13
,
ODOO_14
):
if
not
any
(
opt
in
dev_opts
for
opt
in
(
"
all
"
,
"
werkzeug
"
)):
dev_opts
.
append
(
"
werkzeug
"
)
arg
.
append
(
f
"
--dev=
{
'
,
'
.
join
(
set
(
dev_opts
))
}
"
)
if
odoo_type
in
(
ODOO_8
,):
arg
.
append
(
"
--auto-reload
"
)
...
...
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