From 390e27e7b71fa7970a809ff868650eea68502d98 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Fri, 3 Feb 2023 12:28:32 +0000 Subject: [PATCH] [FIX] l10n_latam_invoice_document: onchange needed now after debit note wizard An error in l10n staging showed a different name for the debit note as foreseen in the XML. Checking in the runbot of that l10n staging, we saw that from the debit note wizard, the document type is recalculated, but the onchange to trigger the name change was not triggered, so we added that and this made it back green. Because of the changes of commit 7edee80 X-original-commit: 3efc6cf1d7a2276a18a4656b4ea4f9e18141bc21 Part-of: odoo/odoo#113302 --- addons/l10n_latam_invoice_document/wizards/account_debit_note.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/l10n_latam_invoice_document/wizards/account_debit_note.py b/addons/l10n_latam_invoice_document/wizards/account_debit_note.py index e84f6ba6ff0..99110804b51 100644 --- a/addons/l10n_latam_invoice_document/wizards/account_debit_note.py +++ b/addons/l10n_latam_invoice_document/wizards/account_debit_note.py @@ -12,4 +12,5 @@ class AccountDebitNote(models.TransientModel): if new_move_id: new_move = self.env['account.move'].browse(new_move_id) new_move._compute_l10n_latam_document_type() + new_move._onchange_l10n_latam_document_type_id() return res