From 23ebf96cb6ca3dfc65cbed00cf3eb32a127ad7fe Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Thu, 15 Jul 2021 14:41:24 +0000 Subject: [PATCH] [FIX] account: fix account resequence for "other" lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linked to commit https://github.com/odoo/odoo/commit/3e6b7dfd4854069724dde2df43ab2eb7d850e9b5 Resequence wizard will not show if "other" lines are generated to reduce the set to display in preview, because those lines don't have "id" to be used as t-key in the resequence template. opw-2590273 opw-2581306 closes odoo/odoo#73811 X-original-commit: 70baff1aac1ab39c4e27f8078d404e8fdfa325db Signed-off-by: William André (wan) Signed-off-by: Anh Thao PHAM --- addons/account/wizard/account_resequence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_resequence.py b/addons/account/wizard/account_resequence.py index 9c15568785c..1e0f2006fb0 100644 --- a/addons/account/wizard/account_resequence.py +++ b/addons/account/wizard/account_resequence.py @@ -65,7 +65,7 @@ class ReSequenceWizard(models.TransientModel): or (self.sequence_number_reset == 'year' and line['server-date'][0:4] != previous_line['server-date'][0:4])\ or (self.sequence_number_reset == 'month' and line['server-date'][0:7] != previous_line['server-date'][0:7]): if in_elipsis: - changeLines.append({'current_name': _('... (%s other)', in_elipsis), 'new_by_name': '...', 'new_by_date': '...', 'date': '...'}) + changeLines.append({'id': 'other_' + str(line['id']), 'current_name': _('... (%s other)', in_elipsis), 'new_by_name': '...', 'new_by_date': '...', 'date': '...'}) in_elipsis = 0 changeLines.append(line) else: