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
93de1fc04c4c
Commit
93de1fc04c4c
authored
5 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add index for performance
parent
83fbcddbec09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS.rst
+4
-0
4 additions, 0 deletions
NEWS.rst
__manifest__.py
+1
-1
1 addition, 1 deletion
__manifest__.py
models/account_fiscalyear.py
+2
-1
2 additions, 1 deletion
models/account_fiscalyear.py
models/account_period.py
+1
-0
1 addition, 0 deletions
models/account_period.py
with
8 additions
and
2 deletions
NEWS.rst
0 → 100644
+
4
−
0
View file @
93de1fc0
11.0.1.1
--------
Add index on columns for performance
This diff is collapsed.
Click to expand it.
__manifest__.py
+
1
−
1
View file @
93de1fc0
...
...
@@ -31,7 +31,7 @@
Inspired from what used to be available in previous Odoo versions.
"""
,
"
version
"
:
"
11.0.1.
0
"
,
"
version
"
:
"
11.0.1.
1
"
,
"
category
"
:
"
Accounting
"
,
"
author
"
:
"
XCG Consulting
"
,
"
website
"
:
"
http://odoo.consulting/
"
,
...
...
This diff is collapsed.
Click to expand it.
models/account_fiscalyear.py
+
2
−
1
View file @
93de1fc0
...
...
@@ -49,6 +49,7 @@
default
=
lambda
rec
:
rec
.
env
.
user
.
company_id
,
help
=
"
The company the fiscal year is in.
"
,
required
=
True
,
index
=
True
,
)
name
=
fields
.
Char
(
...
...
@@ -119,7 +120,7 @@
def
create_period
(
self
):
"""
Call by the
"
Create Periods
"
Button.
This function use
"
end
date
"
field to generate
This function use
"
date
_stop
"
field to generate
automatically all periods.
"""
for
fy
in
self
:
...
...
This diff is collapsed.
Click to expand it.
models/account_period.py
+
1
−
0
View file @
93de1fc0
...
...
@@ -47,6 +47,7 @@
help
=
"
The company the fiscal year is in.
"
,
readonly
=
True
,
store
=
True
,
index
=
True
,
)
date_cutoff
=
fields
.
Date
(
...
...
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