From bf1cc4b9135f5168ae987c0c92b1a183e6da1fc0 Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Wed, 17 Jan 2024 14:16:37 +0000 Subject: [PATCH] [FIX] l10n_it_stock_ddt: fix invoice with empty l10n_it_ddt_number Steps to reproduce: - Install Accounting, Inventory, Sales and l10n_it_edi - Switch to an Italian company (e.g. IT company) - Create a storable product (e.g. Product X) - Update its available quantity to more than 0 - Create a SO with Product X and confirm it - Deliver the products - Install l10n_it_stock_ddt - From SO, create an invoice and confirm it Issue: When confirming the invoice, a traceback is raised: "TypeError: 'bool' object is not subscriptable" Cause: When installing "l10n_it_stock_ddt", a new char field "l10n_it_ddt_number" is added to "stock.picking" model, but its value is False for existing pickings. When generating the electronic invoice, "format_alphanumeric" is performed on the field, assuming it has a string value. opw-3661824 closes odoo/odoo#151262 X-original-commit: 67bbf31e57959631d98586f5a4d22f981b344066 Signed-off-by: Cedric Snauwaert Signed-off-by: Anh Thao Pham (pta) --- addons/l10n_it_stock_ddt/data/l10n_it_ddt_template.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_it_stock_ddt/data/l10n_it_ddt_template.xml b/addons/l10n_it_stock_ddt/data/l10n_it_ddt_template.xml index 665b0bbf6c4..045ce107f9f 100644 --- a/addons/l10n_it_stock_ddt/data/l10n_it_ddt_template.xml +++ b/addons/l10n_it_stock_ddt/data/l10n_it_ddt_template.xml @@ -4,7 +4,7 @@ - +