Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Converter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
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 modules
Converter
Commits
2c908ba2f79c
Commit
2c908ba2f79c
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
fix code, spotted thanks to
pylint
parent
3ab7999f2abe
No related branches found
No related tags found
2 merge requests
!30
Merge 13.0 (13.0.3.0.2 ➔ 13.0.3.1.0)
,
!25
Topic/13.0/fix
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
__manifest__.py
+1
-1
1 addition, 1 deletion
__manifest__.py
model.py
+1
-1
1 addition, 1 deletion
model.py
switch.py
+1
-1
1 addition, 1 deletion
switch.py
with
8 additions
and
3 deletions
NEWS.rst
+
5
−
0
View file @
2c908ba2
...
@@ -2,6 +2,11 @@
...
@@ -2,6 +2,11 @@
History
History
*******
*******
3.0.1
=====
Fix code errors.
3.0.0
3.0.0
=====
=====
...
...
This diff is collapsed.
Click to expand it.
__manifest__.py
+
1
−
1
View file @
2c908ba2
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
"
name
"
:
"
Converter
"
,
"
name
"
:
"
Converter
"
,
"
license
"
:
"
AGPL-3
"
,
"
license
"
:
"
AGPL-3
"
,
"
summary
"
:
"
Convert odoo records to/from plain data structures.
"
,
"
summary
"
:
"
Convert odoo records to/from plain data structures.
"
,
"
version
"
:
"
13.0.3.0.
0
"
,
"
version
"
:
"
13.0.3.0.
1
"
,
"
category
"
:
"
Hidden
"
,
"
category
"
:
"
Hidden
"
,
"
author
"
:
"
XCG Consulting
"
,
"
author
"
:
"
XCG Consulting
"
,
"
website
"
:
"
https://odoo.consulting/
"
,
"
website
"
:
"
https://odoo.consulting/
"
,
...
...
This diff is collapsed.
Click to expand it.
model.py
+
1
−
1
View file @
2c908ba2
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
try
:
try
:
self
.
validator
.
validate
(
self
.
_jsonschema
,
message_data
)
self
.
validator
.
validate
(
self
.
_jsonschema
,
message_data
)
except
jsonschema
.
exceptions
.
ValidationError
as
exception
:
except
jsonschema
.
exceptions
.
ValidationError
as
exception
:
_logger
.
warning
(
"
Validation failed
"
,
exc
eption
)
_logger
.
warning
(
"
Validation failed
"
,
exc
_info
=
1
)
if
self
.
validation
==
VALIDATION_STRICT
:
if
self
.
validation
==
VALIDATION_STRICT
:
raise
exception
raise
exception
...
...
This diff is collapsed.
Click to expand it.
switch.py
+
1
−
1
View file @
2c908ba2
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
converter
.
validation
=
value
converter
.
validation
=
value
def
get__type__
(
self
)
->
Set
[
str
]:
def
get__type__
(
self
)
->
Set
[
str
]:
types
=
[]
types
=
set
()
for
_out_cond
,
_in_cond
,
converter
in
self
.
_converters
:
for
_out_cond
,
_in_cond
,
converter
in
self
.
_converters
:
types
.
update
(
converter
.
get__type__
())
types
.
update
(
converter
.
get__type__
())
return
types
return
types
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