From 892087c71b6e92b34d9657d66251d752cf3b3bac Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Tue, 13 Jul 2021 07:08:13 +0000 Subject: [PATCH] [FIX] account: fix invoices/bills resequence with same name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create 2 invoices (or 2 bills) but let them in draft - In invoices list view, select all invoices - Execute Action > Resequence Resequence wizard will not show. It comes from a template in resequence renderer using account move name as t-key that silently crashes because both draft invoices have the same name ("/"). opw-2590273 closes odoo/odoo#73724 X-original-commit: 3e6b7dfd4854069724dde2df43ab2eb7d850e9b5 Signed-off-by: William André (wan) --- addons/account/static/src/xml/account_resequence.xml | 2 +- addons/account/wizard/account_resequence.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/static/src/xml/account_resequence.xml b/addons/account/static/src/xml/account_resequence.xml index 59ea77e5fbd..172a0e94461 100644 --- a/addons/account/static/src/xml/account_resequence.xml +++ b/addons/account/static/src/xml/account_resequence.xml @@ -8,7 +8,7 @@ Before After - + diff --git a/addons/account/wizard/account_resequence.py b/addons/account/wizard/account_resequence.py index b3b754f4bee..9c15568785c 100644 --- a/addons/account/wizard/account_resequence.py +++ b/addons/account/wizard/account_resequence.py @@ -105,6 +105,7 @@ class ReSequenceWizard(models.TransientModel): # compute the new values period by period for move in period_recs: new_values[move.id] = { + 'id': move.id, 'current_name': move.name, 'state': move.state, 'date': format_date(self.env, move.date),