From 9c7a5128cbde9a868ff24693fa7f73aa14281b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Tue, 17 Sep 2024 16:12:50 +0200 Subject: [PATCH] Use summary + README for non-OCA addons too --- bobtemplates/odoo/addon/+addon.name+/README.rst.bob | 13 +++++++++++-- .../odoo/addon/+addon.name+/__openerp__.py.bob | 8 +------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/bobtemplates/odoo/addon/+addon.name+/README.rst.bob b/bobtemplates/odoo/addon/+addon.name+/README.rst.bob index 394f50c..db72ae7 100644 --- a/bobtemplates/odoo/addon/+addon.name+/README.rst.bob +++ b/bobtemplates/odoo/addon/+addon.name+/README.rst.bob @@ -6,6 +6,13 @@ {{{ addon.summary }}} +Purpose +======= + +This module does this and that... + +Explain the use case. + Configuration ============= @@ -21,5 +28,7 @@ To use this module, you need to: #. Go to ... -Changelog -========= +How to test +=========== + +... diff --git a/bobtemplates/odoo/addon/+addon.name+/__openerp__.py.bob b/bobtemplates/odoo/addon/+addon.name+/__openerp__.py.bob index 2a89d93..2451d71 100644 --- a/bobtemplates/odoo/addon/+addon.name+/__openerp__.py.bob +++ b/bobtemplates/odoo/addon/+addon.name+/__openerp__.py.bob @@ -5,13 +5,7 @@ { 'name': '{{{ addon.name_camelwords }}}', -{{% if addon.oca %}} - 'summary': """ - {{{ addon.summary }}}""", -{{% else %}} - 'description': """ - {{{ addon.summary }}}""", -{{% endif %}} + 'summary': """{{{ addon.summary }}}""", 'version': '{{{ addon.version }}}', 'license': 'AGPL-3', 'author': '{{{ copyright.name }}}{{% if addon.oca %}},Odoo Community Association (OCA){{% endif %}}',