Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Accounting Periods
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
Accounting Periods
Commits
b811fd028a4e
Commit
b811fd028a4e
authored
6 years ago
by
szeka.wong
Browse files
Options
Downloads
Patches
Plain Diff
Python 3 syntax fix
parent
fc24e7e467e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/conf.py
+9
-9
9 additions, 9 deletions
doc/conf.py
tests/util/odoo_tests.py
+1
-1
1 addition, 1 deletion
tests/util/odoo_tests.py
with
10 additions
and
10 deletions
doc/conf.py
+
9
−
9
View file @
b811fd02
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# serve to show the default.
# serve to show the default.
import
ast
import
ast
import
C
onfig
P
arser
import
c
onfig
p
arser
import
os
import
os
import
sys
import
sys
...
@@ -58,9 +58,9 @@
...
@@ -58,9 +58,9 @@
master_doc
=
'
index
'
master_doc
=
'
index
'
# General information about the project.
# General information about the project.
project
=
u
'
Accounting periods
'
project
=
'
Accounting periods
'
copyright
=
u
'
2018, XCG Consulting
'
copyright
=
'
2018, XCG Consulting
'
author
=
u
'
XCG Consulting
'
author
=
'
XCG Consulting
'
# The version info for the project you're documenting, acts as replacement for
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# |version| and |release|, also used in various other places throughout the
...
@@ -238,8 +238,8 @@
...
@@ -238,8 +238,8 @@
# author, documentclass [howto, manual, or own class]).
# author, documentclass [howto, manual, or own class]).
latex_documents
=
[
latex_documents
=
[
(
master_doc
,
'
AccountingPeriods.tex
'
,
(
master_doc
,
'
AccountingPeriods.tex
'
,
u
'
Accounting periods documentation
'
,
'
Accounting periods documentation
'
,
u
'
XCG Consulting
'
,
'
manual
'
),
'
XCG Consulting
'
,
'
manual
'
),
]
]
# The name of an image file (relative to this directory) to place at the top of
# The name of an image file (relative to this directory) to place at the top of
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
# (source start file, name, description, authors, manual section).
# (source start file, name, description, authors, manual section).
man_pages
=
[
man_pages
=
[
(
master_doc
,
'
AccountingPeriods
'
,
(
master_doc
,
'
AccountingPeriods
'
,
u
'
Accounting periods documentation
'
,
'
Accounting periods documentation
'
,
[
author
],
1
)
[
author
],
1
)
]
]
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
# dir menu entry, description, category)
# dir menu entry, description, category)
texinfo_documents
=
[
texinfo_documents
=
[
(
master_doc
,
'
AccountingPeriods
'
,
(
master_doc
,
'
AccountingPeriods
'
,
u
'
Accounting periods documentation
'
,
'
Accounting periods documentation
'
,
author
,
'
AccountingPeriods
'
,
'''
author
,
'
AccountingPeriods
'
,
'''
Accounting periods
Accounting periods
'''
,
'''
,
...
@@ -320,7 +320,7 @@
...
@@ -320,7 +320,7 @@
sphinxodoo_root_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
odoo
.
__file__
)))
sphinxodoo_root_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
odoo
.
__file__
)))
# sphinxodoo_addons_path : List of paths were Odoo addons to load are located
# sphinxodoo_addons_path : List of paths were Odoo addons to load are located
superproject_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
getenv
(
'
PWD
'
))))
superproject_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
getenv
(
'
PWD
'
))))
c
=
C
onfig
P
arser
.
ConfigParser
()
c
=
c
onfig
p
arser
.
ConfigParser
()
c
.
read
(
os
.
path
.
join
(
superproject_path
,
'
setup.cfg
'
))
c
.
read
(
os
.
path
.
join
(
superproject_path
,
'
setup.cfg
'
))
sphinxodoo_addons_path
=
[
os
.
path
.
join
(
sphinxodoo_root_path
,
'
addons
'
)]
sphinxodoo_addons_path
=
[
os
.
path
.
join
(
sphinxodoo_root_path
,
'
addons
'
)]
...
...
This diff is collapsed.
Click to expand it.
tests/util/odoo_tests.py
+
1
−
1
View file @
b811fd02
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
self
.
assertIsInstance
(
record
,
odoo
.
models
.
BaseModel
)
self
.
assertIsInstance
(
record
,
odoo
.
models
.
BaseModel
)
for
field
,
value
in
local_values
.
items
():
for
field
,
value
in
list
(
local_values
.
items
()
)
:
tester
=
(
tester
=
(
custom_testers
.
get
(
field
)
or
custom_testers
.
get
(
field
)
or
...
...
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