From bde8ac75055d9fb53fb8b989a01f3e865afdfb27 Mon Sep 17 00:00:00 2001 From: "David Monnom (moda)" Date: Mon, 30 Oct 2023 14:50:48 +0000 Subject: [PATCH] [FIX] point_of_sale: proxy_ip validation error at demo data loading The demo data of point_of_sale module was failing to load when pos_iot module was installed due to proxy_ip validation error. In fact, the iot module overrides this field by creating a relationship to iot_ip. When the demo data is created in the pos, the iot does not yet exist, so proxy_ip is empty, so it trigger the validation error. Error validation is triggered only when proxy_ip is empty and printer_type is set to "iot". In the point_of_sale data demos, we set printer_type to false, which fixes the problem. closes odoo/odoo#140457 X-original-commit: 2f1af3a39b0d61dbf7c70e4fbc6421af906854d0 Signed-off-by: Joseph Caburnay (jcb) Signed-off-by: David Monnom (moda) --- addons/point_of_sale/data/point_of_sale_demo.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/data/point_of_sale_demo.xml b/addons/point_of_sale/data/point_of_sale_demo.xml index 0415dceedf7..fffb8825f7a 100644 --- a/addons/point_of_sale/data/point_of_sale_demo.xml +++ b/addons/point_of_sale/data/point_of_sale_demo.xml @@ -66,6 +66,7 @@ Preparation Printer localhost +