From 3f70786cf37f2c7ec43857e52f262b9f5b7229b9 Mon Sep 17 00:00:00 2001 From: Sergio Lop Sanz Date: Mon, 10 Jun 2024 20:09:19 +0200 Subject: [PATCH] Cambios 14.0 --- mis_report_por_grupo/models/account_move_line_group.py | 6 +++--- 1 file changed, 3 insertions(+), 3 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 5e2cec3..740c30c 100644 --- a/mis_report_por_grupo/models/account_move_line_group.py +++ b/mis_report_por_grupo/models/account_move_line_group.py @@ -47,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 @@ -74,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, })