# HG changeset patch
# User DIATTA Arona Ben Cherif dit Roon <aronabencherif.diatta@xcg.africa>
# Date 1716913911 0
#      Tue May 28 16:31:51 2024 +0000
# Branch 16.0
# Node ID 75ef7c10980d6a4856abffc2ec274360f82775bf
# Parent  e9722140b5b85a4fa27b8fd528972cfa1d914be8
# EXP-Topic topic_MO16-00791
Update following the addition of standard invoice template

diff --git a/NEWS.rst b/NEWS.rst
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -5,6 +5,8 @@
 16.0.1.2.0
 ----------
 
+Update following the addition of standard invoice template
+
 Add the invoice template as standard.
 Introduces sorting capabilities within the Redner substitution.
 
diff --git a/models/ir_actions_report.py b/models/ir_actions_report.py
--- a/models/ir_actions_report.py
+++ b/models/ir_actions_report.py
@@ -260,7 +260,11 @@
                 # Get redner template already created by demo function
                 redner_template = self.env["redner.template"].search(
                     [
-                        ("name", "=", "facture_avoir_v9.odt"),
+                        (
+                            "name",
+                            "=",
+                            self.env.ref("redner.redner_invoice_having_odt").name,
+                        ),
                         (
                             "language",
                             "=",
diff --git a/models/redner_template.py b/models/redner_template.py
--- a/models/redner_template.py
+++ b/models/redner_template.py
@@ -288,7 +288,7 @@
             config_model.get_param("redner.server_url"),
             config_model.get_param("redner.account"),
         ]
-        if False in redner_config_list:  # Config parameters not completed
+        if not all(redner_config_list):  # Config parameters not completed
             logger.error(
                 "Redner template demo data: THE TEMPLATE CANNOT LOAD "
                 "IF THE REDNER PARAMETERS ARE NOT COMPLETELY CONFIGURED"