From 34bc61a3d3ea88aeb7fa25df4b19a940b7502717 Mon Sep 17 00:00:00 2001 From: poma-odoo <94347551+poma-odoo@users.noreply.github.com> Date: Fri, 3 Dec 2021 17:38:11 +0000 Subject: [PATCH] [FIX] developer/rdtraining: comply with the guidelines for report naming The suggested folder structure does not comply with guidelines: https://www.odoo.com/documentation/15.0/developer/misc/other/guidelines.html#file-naming > Concerning printable reports which contain mainly data preparation and Qweb templates naming is the following : addons/plant_nursery/ |-- report/ | |-- plant_order_reports.xml (report actions, paperformat, ...) | |-- plant_order_templates.xml (xml report templates) closes odoo/documentation#1350 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/howtos/rdtraining/J_reports.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/developer/howtos/rdtraining/J_reports.rst b/content/developer/howtos/rdtraining/J_reports.rst index d87f53a01..67f494c52 100644 --- a/content/developer/howtos/rdtraining/J_reports.rst +++ b/content/developer/howtos/rdtraining/J_reports.rst @@ -35,7 +35,7 @@ There is no strict rule for the file names or where they are located, but these typically stored in 2 separate files within a ``report`` folder in the top level of your module's directory. If a module has many or multiple long report templates, then they are often organized in a logical manner across different files named after the report(s) they contain. All actions -for the reports are usually stored in the same file ending with ``_report_views.xml`` regardless of the +for the reports are usually stored in the same file ending with ``_reports.xml`` regardless of the number of reports it contains. Therefore it is expected that your work tree will look something like: @@ -47,8 +47,8 @@ Therefore it is expected that your work tree will look something like: │ ├── *.py │ └── __init__.py ├── report - │ ├── estate_report_templates.xml - │ └── estate_report_views.xml + │ ├── estate_property_templates.xml + │ └── estate_property_reports.xml ├── security │ └── ir.model.access.csv ├── views