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
Commits
c720d1e07090
Commit
c720d1e07090
authored
1 year ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
View fixes along with analytic_structure 16.0.1.0.9
parent
bf5d787dbeb6
No related branches found
No related tags found
1 merge request
!12
View fixes along with analytic_structure 16.0.1.0.9
Pipeline
#61713
passed
1 year ago
Stage: build
Stage: test
Stage: doc
Stage: deploy
Changes
3
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS.rst
+2
-0
2 additions, 0 deletions
NEWS.rst
__manifest__.py
+1
-1
1 addition, 1 deletion
__manifest__.py
models/account_move.py
+7
-11
7 additions, 11 deletions
models/account_move.py
with
10 additions
and
12 deletions
NEWS.rst
+
2
−
0
View file @
c720d1e0
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
Add missing LICENSE file.
Add missing LICENSE file.
View fixes along with analytic_structure 16.0.1.0.9.
16.0.1.0.1
16.0.1.0.1
----------
----------
...
...
This diff is collapsed.
Click to expand it.
__manifest__.py
+
1
−
1
View file @
c720d1e0
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
{
{
"
name
"
:
"
Account Analytic Structure
"
,
"
name
"
:
"
Account Analytic Structure
"
,
"
license
"
:
"
AGPL-3
"
,
"
license
"
:
"
AGPL-3
"
,
"
version
"
:
"
16.0.1.0.
1
"
,
"
version
"
:
"
16.0.1.0.
2
"
,
"
author
"
:
"
XCG Consulting
"
,
"
author
"
:
"
XCG Consulting
"
,
"
category
"
:
"
Accounting
"
,
"
category
"
:
"
Accounting
"
,
"
summary
"
:
"
Defines analytic structures for accounting models.
"
,
"
summary
"
:
"
Defines analytic structures for accounting models.
"
,
...
...
This diff is collapsed.
Click to expand it.
models/account_move.py
+
7
−
11
View file @
c720d1e0
...
@@ -30,10 +30,8 @@
...
@@ -30,10 +30,8 @@
@api.model
@api.model
def
get_view
(
self
,
view_id
=
None
,
view_type
=
"
form
"
,
**
options
):
def
get_view
(
self
,
view_id
=
None
,
view_type
=
"
form
"
,
**
options
):
"""
Override to handle analytics added into accounting entry lists
"""
Override view fetcher to handle analytics included in line views.
"""
embedded into main accounting document form 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
"
self
=
self
.
with_context
(
sub_model
=
"
account.move.line
"
,
model_analytic
=
"
account_move_line
"
)
)
...
@@ -39,7 +37,4 @@
...
@@ -39,7 +37,4 @@
)
)
ret
=
self
.
env
[
"
analytic.structure
"
].
analytic_get_view
(
return
super
(
AccountingDoc
,
self
).
get_view
(
self
.
env
[
"
account.move.line
"
],
ret
,
subfield
=
"
invoice_line_ids
"
view_id
=
view_id
,
view_type
=
view_type
,
**
options
,
)
)
...
@@ -45,4 +40,5 @@
...
@@ -45,4 +40,5 @@
)
)
return
ret
def
action_post
(
self
):
def
action_post
(
self
):
"""
Override this validation method defined in the
"
account
"
module to
"""
Override this validation method defined in the
"
account
"
module to
...
...
This diff is collapsed.
Click to expand it.
Houzefa Abbasbhay
@houzefa.abba
mentioned in commit
5acc5dcdcd63
·
1 year ago
mentioned in commit
5acc5dcdcd63
mentioned in commit 5acc5dcdcd6305c00ddc6edb67abf3c07ce5967b
Toggle commit list
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