From e756aa90e15cbb5fcc433ad3eae72f952a5b8634 Mon Sep 17 00:00:00 2001 From: "Nasreddin Boulif (bon)" Date: Thu, 14 Jul 2022 11:30:52 +0000 Subject: [PATCH] [FIX] l10n_latam_invoice_document: Allow digitalization Steps to reproduce: - Install l10n_ar module (or any l10n_* module that depends on l10n_latam_invoice_document) - Go to Accounting -> Vendors -> Bills - Click on Upload and select a bill file - Open draft bill - Click on `Send For Digitalization` Issue: Digitalization don't start and a warning message is diplayed saying that some required fields are invalid. Cause: When clicking on the button to digitalize the invoice, we try to save the form first before executing the action. By doing so, if some fields are required and empty, a warning message will be displayed. In this case, the issue is with the fields `Document Type` and `Document Number`. Solution: Set `Document Type` and `Document Number` to not required if there is no partner_id set on the bill. opw-2797444 closes odoo/odoo#98115 X-original-commit: b95473e3edf79796c7915afcdec5b4aa9addf273 Signed-off-by: Josse Colpaert Signed-off-by: Nasreddin Boulif (bon) --- .../l10n_latam_invoice_document/views/account_move_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_latam_invoice_document/views/account_move_view.xml b/addons/l10n_latam_invoice_document/views/account_move_view.xml index 751abf90a08..46e4856e2cc 100644 --- a/addons/l10n_latam_invoice_document/views/account_move_view.xml +++ b/addons/l10n_latam_invoice_document/views/account_move_view.xml @@ -42,11 +42,11 @@