Skip to content
Snippets Groups Projects
Commit c720d1e07090 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

View fixes along with analytic_structure 16.0.1.0.9

parent bf5d787dbeb6
No related branches found
No related tags found
1 merge request!12View fixes along with analytic_structure 16.0.1.0.9
Pipeline #61713 passed
...@@ -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
---------- ----------
......
...@@ -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.",
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment