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
2a99fb809c68
Commit
2a99fb809c68
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
use constant instead of "odoo15"
parent
349a1a9110ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!78
🚑 fix conf2reST
,
!77
Topic/default/pylint
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
odoo_scripts/config.py
+3
-1
3 additions, 1 deletion
odoo_scripts/config.py
odoo_scripts/docker_flake8.py
+2
-2
2 additions, 2 deletions
odoo_scripts/docker_flake8.py
odoo_scripts/docker_isort.py
+2
-2
2 additions, 2 deletions
odoo_scripts/docker_isort.py
with
7 additions
and
5 deletions
odoo_scripts/config.py
+
3
−
1
View file @
2a99fb80
...
...
@@ -11,6 +11,8 @@
SECTION
=
"
odoo_scripts
"
OTHER_SOURCES_KEY
=
"
other_sources
"
ODOO_15
=
"
odoo15
"
"""
Value for odoo_type representing Odoo 15.0
"""
_logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -186,7 +188,7 @@
"
odoo10
"
,
"
odoo11
"
,
"
odoo13
"
,
"
odoo
15
"
,
ODOO_
15
,
):
if
path
:
_logger
.
info
(
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_flake8.py
+
2
−
2
View file @
2a99fb80
...
...
@@ -8,7 +8,7 @@
import
os
import
sys
from
.config
import
Config
from
.config
import
ODOO_15
,
Config
from
.docker_client
import
DockerClient
from
.parsing
import
apply
,
basic_parser
...
...
@@ -91,7 +91,7 @@
if
odoo_type
in
(
"
odoo7
"
,
"
odoo8
"
,
"
odoo9
"
,
"
odoo10
"
):
repository
=
"
xcgd/flake8
"
tag
=
"
2
"
elif
odoo_type
==
"
odoo
15
"
:
elif
odoo_type
==
ODOO_
15
:
tag
=
"
15.0
"
else
:
repository
=
"
xcgd/flake8
"
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_isort.py
+
2
−
2
View file @
2a99fb80
...
...
@@ -10,7 +10,7 @@
import
docker
from
.config
import
Config
from
.config
import
ODOO_15
,
Config
from
.docker_client
import
DockerClient
from
.parsing
import
apply
,
basic_parser
...
...
@@ -110,7 +110,7 @@
# determine image to use based on odoo version
repository
=
"
quay.orus.io/odoo/odoo
"
if
odoo_type
==
"
odoo
15
"
:
if
odoo_type
==
ODOO_
15
:
tag
=
"
15.0
"
# append the directory, needed with isort≥5.0.0
command
.
append
(
"
.
"
)
...
...
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