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
Merge requests
!26
Create branch 16.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Create branch 16.0
topic/16.0/migration-16.0
into
branch/16.0
Overview
0
Commits
2
Pipelines
35
Changes
7
Merged
arthur.mayer
requested to merge
topic/16.0/migration-16.0
into
branch/16.0
1 year ago
Overview
0
Commits
2
Pipelines
35
Changes
7
Expand
--HG-- branch : 16.0
0
0
Merge request reports
Viewing commit
54a1af5e
Show latest version
7 files
+
90
−
384
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
54a1af5e
: Reviewed migration, play_onchanges usage, and unit tests
· 54a1af5e
oury.balde
authored
1 year ago
models/account_fiscal_year.py
+
13
−
6
Options
@@ -43,12 +43,19 @@
"
duration_count
"
:
period_type
.
duration_count
,
"
unit_of_time
"
:
period_type
.
unit_of_time
,
}
date_range_generator_values
.
update
(
date_range_generator_object
.
play_onchanges
(
date_range_generator_values
,
list
(
date_range_generator_values
.
keys
()),
)
)
# TODO: Investigate the application of play_onchanges.
# play_onchanges can affect computed fields with the readonly
# attribute. Note that if the readonly attribute of a computed
# field is set to False and a value is manually filled, the
# computed field value is reset to False.
# date_range_generator_values.update(
# date_range_generator_object.play_onchanges(
# date_range_generator_values,
# list(date_range_generator_values.keys()),
# )
# )
date_range_generator_record
=
date_range_generator_object
.
new
(
values
=
date_range_generator_values
)
Loading