Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Calendar Widget
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package 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 modules
Calendar Widget
Merge requests
!3
Update module to latest practices
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update module to latest practices
topic/15.0/update-to-latest-practices
into
branch/15.0
Overview
0
Commits
1
Pipelines
3
Changes
9
Merged
Vincent Hatakeyama
requested to merge
topic/15.0/update-to-latest-practices
into
branch/15.0
10 months ago
Overview
0
Commits
1
Pipelines
3
Changes
9
Expand
0
0
Merge request reports
Viewing commit
9fad63a3
Show latest version
9 files
+
296
−
28
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
9fad63a3
Update module to latest practices
· 9fad63a3
Vincent Hatakeyama
authored
10 months ago
doc/autotodo.py
+
4
−
4
Options
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright
(C)
2014, 2018, 2022 XCG Consulting
# Copyright
©
2014, 2018, 2022
, 2023
XCG Consulting
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -22,7 +22,7 @@
import
os
import
os.path
import
sys
from
typing
import
Dict
,
Mapping
,
Tuple
from
collections.abc
import
Mapping
def
main
():
@@ -99,8 +99,8 @@
res
[
tag
].
extend
(
info
)
def
scan_file
(
filename
,
tags
)
->
T
uple
[
D
ict
[
str
,
T
uple
[
str
,
int
,
str
]],
int
]:
res
=
{
tag
:
[]
for
tag
in
tags
}
def
scan_file
(
filename
,
tags
)
->
t
uple
[
d
ict
[
str
,
list
[
t
uple
[
str
,
int
,
str
]]
]
,
int
]:
res
:
dict
[
str
,
list
[
tuple
[
str
,
int
,
str
]]]
=
{
tag
:
[]
for
tag
in
tags
}
line_num
:
int
=
0
with
open
(
filename
,
"
r
"
)
as
f
:
for
line_num
,
line
in
enumerate
(
f
):
Loading