From 407d0308daa9b40b75a039517038e87a30bb078e Mon Sep 17 00:00:00 2001 From: Sergio Lop Sanz Date: Tue, 11 Jun 2024 08:44:59 +0200 Subject: [PATCH] 14 balance a 3 (#340) * Balance a 3 * Flake * Flake * Flake * Flake * Cambios 14.0 --- mis_report_por_grupo/models/account_move_line_group.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mis_report_por_grupo/models/account_move_line_group.py b/mis_report_por_grupo/models/account_move_line_group.py index 83070a7..740c30c 100644 --- a/mis_report_por_grupo/models/account_move_line_group.py +++ b/mis_report_por_grupo/models/account_move_line_group.py @@ -1,7 +1,6 @@ ############################################################################### # For copyright and license notices, see __manifest__.py file in root directory ############################################################################### - from odoo import fields, models, tools @@ -48,7 +47,7 @@ def init(self): aml.debit AS debit, aml.credit AS credit, aml.company_id AS company_id, - aml.user_type_id AS user_type_id, + acc.user_type_id AS user_type_id, aml.reconciled AS reconciled, aml.full_reconcile_id AS full_reconcile_id, aml.partner_id AS partner_id @@ -75,11 +74,11 @@ def init(self): ('group_id', '!=', False),]): if not accounts.search([ ('company_id', '=', acc.company_id.id), - ('code', '=', acc.group_id.code_prefix)]): + ('code', '=', acc.group_id.code_prefix_start)]): acc.copy({ 'company_id': acc.company_id.id, 'name': acc.group_id.name or '', - 'code': acc.group_id.code_prefix, + 'code': acc.group_id.code_prefix_start, 'deprecated': True, 'asset_profile_id': False, })