Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Account Analytic Structure
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
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
Account Analytic Structure
Merge requests
!12
View fixes along with analytic_structure 16.0.1.0.9
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
View fixes along with analytic_structure 16.0.1.0.9
topic/16.0/zouzou
into
branch/16.0
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
Houzefa Abbasbhay
requested to merge
topic/16.0/zouzou
into
branch/16.0
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
--HG-- branch : 16.0
0
0
Merge request reports
Compare
branch/16.0
branch/16.0 (base)
and
latest version
latest version
c720d1e0
1 commit,
1 year ago
3 files
+
10
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
models/account_move.py
+
7
−
11
Options
@@ -30,19 +30,15 @@ class AccountingDoc(models.Model):
@api.model
def
get_view
(
self
,
view_id
=
None
,
view_type
=
"
form
"
,
**
options
):
"""
Override to handle analytics added into accounting entry lists
embedded into main accounting document form views.
"""
self
=
self
.
with_context
(
sub_model
=
"
account.move.line
"
,
model_analytic
=
"
account_move_line
"
"""
Override view fetcher to handle analytics included in line views.
"""
ret
=
super
().
get_view
(
view_id
=
view_id
,
view_type
=
view_type
,
**
options
)
ret
=
self
.
env
[
"
analytic.structure
"
].
analytic_get_view
(
self
.
env
[
"
account.move.line
"
],
ret
,
subfield
=
"
line_ids
"
)
return
super
(
AccountingDoc
,
self
).
get_view
(
view_id
=
view_id
,
view_type
=
view_type
,
**
options
,
ret
=
self
.
env
[
"
analytic.structure
"
].
analytic_get_view
(
self
.
env
[
"
account.move.line
"
],
ret
,
subfield
=
"
invoice_line_ids
"
)
return
ret
def
action_post
(
self
):
"""
Override this validation method defined in the
"
account
"
module to
Loading