[17.0][ADD] brand_external_report_layout - #316
Conversation
Port of the 18.0 module with Odoo 18-only layouts removed (bubble, striped, wave, folder) to ensure compatibility with Odoo 17.0 report layout templates.
Port of the 18.0 module with Odoo 18-only layouts removed (bubble, striped, wave, folder) to ensure compatibility with Odoo 17.0 report layout templates.
|
The test failure in @rvalyi @zeroheure would you be able to review this? This ports brand_external_report_layout to 17.0. |
|
|
||
| 1. Go to Settings \> Users & Companies \> Brands | ||
| 2. Add a new brand or select an existing one | ||
| 3. Enter brand information and select the a layout |
| To simplify the customization of the external layout we replaced the | ||
| variable company that odoo compute in the external_layout view by the | ||
| object brand. | ||
|
|
||
| With this module, all custom layouts will display brand information out | ||
| of the box. | ||
|
|
||
| This was possible and easy to implement as the company and the brand | ||
| models inherit from partner model and share the same informational | ||
| fields. | ||
|
|
||
| The computed variable company is used to set report header and footer. | ||
| It's not meant to be used in the report business logic itself. But in | ||
| that case (if a custom layout use the variable company for some-reason | ||
| other then header and footer) this module can cause an issue because the | ||
| used field can be missing in the brand model or not correctly set. | ||
|
|
||
| In this case, we recommend to always use document field company for this | ||
| use-end. |
There was a problem hiding this comment.
This is not a roadmap, rather a technical description. Shoudl be in the DESCRIPTION.md file. I suggest to add a title like "How it works"
| This module allows you to have a different layout by brand for your | ||
| external reports. |
There was a problem hiding this comment.
May be "Choose a layout for you brands in external reports."
(we know it's a module that allows us to do something :-)
| { | ||
| "name": "Brand External Report Layout", | ||
| "summary": """ | ||
| This module allows you to have a different layout by brand for your |
There was a problem hiding this comment.
May be "Easily choose a layout for each of your brands in external reports."
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 18.0\n" |
- Move ROADMAP.md technical description into DESCRIPTION.md - Update DESCRIPTION.md summary line per maintainer request - Fix Project-Id-Version from 18.0 to 17.0 in .pot file
|
Thanks @zeroheure made some changes. ROADMAP.md → content moved to DESCRIPTION.md, file is now empty |
This PR ports the brand_external_report_layout module to Odoo 17.0.
The 18.0 version references several report layout templates that do not
exist in Odoo 17.0 (external_layout_bubble, external_layout_striped,
external_layout_wave, external_layout_folder). These have been removed,
leaving the module compatible with the standard Odoo 17.0 layouts:
standard, boxed, and bold.
Tested and working on odoo.sh with Odoo 17.0 Enterprise.
I have read the CLA Document and I hereby sign the CLA