From f9d7e3d693b4df3506f9e20c097ae661afaae8e7 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Tue, 4 Feb 2025 13:07:54 +0100 Subject: [PATCH] [IMP] core: make author field mandatory in manifests External contributors (and namely Odoo PS) forget to set the author field in their manifest file. The result is that the module is wrongly registered with `'author': 'Odoo S.A.'`. This work makes the field mandatory, with a warning when not set. It also offers an upgrade-code script to mass-rewrite all the manifests in order to set the author. task-4485983 closes odoo/documentation#11956 Related: odoo/odoo#196408 Related: odoo/enterprise#78513 Related: odoo/design-themes#1044 Signed-off-by: Julien Castiaux (juc) --- content/developer/howtos/accounting_localization.rst | 1 + content/developer/tutorials/server_framework_101/02_newapp.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content/developer/howtos/accounting_localization.rst b/content/developer/howtos/accounting_localization.rst index 2b029678f..983a684cd 100644 --- a/content/developer/howtos/accounting_localization.rst +++ b/content/developer/howtos/accounting_localization.rst @@ -277,6 +277,7 @@ Basic :file:`__manifest__.py` file for such a module looks as following: "name": "COUNTRY - Accounting Reports", "category": "Accounting/Localizations/Reporting", "version": "1.0.0", + "author": "Odoo S.A.", "license": "OEEL-1", "depends": [ "l10n_XX", "account_reports" diff --git a/content/developer/tutorials/server_framework_101/02_newapp.rst b/content/developer/tutorials/server_framework_101/02_newapp.rst index 31e02dcfd..264516788 100644 --- a/content/developer/tutorials/server_framework_101/02_newapp.rst +++ b/content/developer/tutorials/server_framework_101/02_newapp.rst @@ -63,7 +63,7 @@ On the other hand, the ``__manifest__.py`` file must describe our module and can Its only required field is the ``name``, but it usually contains much more information. Take a look at the -`CRM file `__ +`CRM file `__ as an example. In addition to providing the description of the module (``name``, ``category``, ``summary``, ``website``...), it lists its dependencies (``depends``). A dependency means that the Odoo framework will ensure that these modules are installed before our module is installed. Moreover, if