[MIG] account_financial_report: Migration to 13.0

This commit is contained in:
Ernesto Tejeda
2020-03-23 11:15:55 -04:00
committed by chaule97
parent 40c874a112
commit 712d4a898a
39 changed files with 789 additions and 1677 deletions

View File

@@ -36,13 +36,11 @@ class AccountGroup(models.Model):
""" Forms complete code of location from parent location to child location. """
if self.parent_id.complete_code:
self.complete_code = "{}/{}".format(
self.parent_id.complete_code,
self.code_prefix,
self.parent_id.complete_code, self.code_prefix
)
else:
self.complete_code = self.code_prefix
@api.multi
@api.depends("parent_id", "parent_id.level")
def _compute_level(self):
for group in self:
@@ -51,7 +49,6 @@ class AccountGroup(models.Model):
else:
group.level = group.parent_id.level + 1
@api.multi
@api.depends(
"code_prefix",
"account_ids",

View File

@@ -1,12 +1,11 @@
# Copyright 2019 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-
from odoo import api, models
from odoo import models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
@api.model_cr
def init(self):
"""
The join between accounts_partners subquery and account_move_line