From 964dabd8d9d11e7ce8205b2eb0a2e6ee83c9f635 Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Sat, 24 Dec 2022 07:35:19 +0000 Subject: [PATCH] [FIX] l10n_cl: traceback on printing invoice without setting vat in company when the vat is not configured in the company and on printing the invoice, the traceback is raised. this is due to the calling of method _format_dotted_vat_cl that excepts the vat value as input, when the method is called without a vat value, the traceback is thrown. add an if condition to check there is a vat configured in the company and then the _format_dotted_vat_cl method is called only when there is a value in vat. closes odoo/odoo#109133 X-original-commit: cadbe9e632c17efc0e68409df6fe8789f3f1dd14 Signed-off-by: Josse Colpaert --- addons/l10n_cl/views/report_invoice.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/l10n_cl/views/report_invoice.xml b/addons/l10n_cl/views/report_invoice.xml index 92e32b06f15..b34eddeee02 100644 --- a/addons/l10n_cl/views/report_invoice.xml +++ b/addons/l10n_cl/views/report_invoice.xml @@ -50,7 +50,9 @@
RUT: - + + +