diff --git a/tools/gen_addon_readme.py b/tools/gen_addon_readme.py
index ef5c7ac5..3eb903e4 100644
--- a/tools/gen_addon_readme.py
+++ b/tools/gen_addon_readme.py
@@ -111,6 +111,15 @@ def __init__(self, level: int):
# Use the short form of syntax highlighting so that the generated
# Pygments CSS can be used to style the output.
"syntax_highlight": "short",
+ # Since odoo/odoo@8d06889, Odoo emits a warning
+ # if index.html contains an xml declaration
+ "xml_declaration": False,
+ # ...but even for previous versions we don't need
+ # the xml declaration as docutils adds a tag:
+ #
+ # utf-8 is default value for output_encoding
+ # but let's make it explicit here:
+ "output_encoding": "utf-8",
}
# GitHub Flavored Markdown