-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[17.0] [ADD] web_font_size_report_layout #3269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
syci
wants to merge
26
commits into
OCA:17.0
Choose a base branch
from
BinhexTeam:17.0-web_font_size_report_layout
base: 17.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[IMP] Adds a font size selector (pt) to the Document Layout wizard
39d08d8
to
12babe1
Compare
12babe1
to
68cf1b3
Compare
Tested on Odoo 17 CE — font size controls work in report editor, PDFs render cleanly. Functionality as expected. |
…ned variable For an unknown reason, when running the tests, the session does not have all variables filled, so apps_menu is undefined. This causes an error in tours of other modules: "Cannot read properties of undefined (reading 'theme')". The curious thing is that if you run the tests of this module alone, they pass. But when running tests together with another module, tests from the other module fail. For example, when running tests with the voip_oca module.
Currently translated at 100.0% (12 of 12 strings) Translation: web-17.0/web-17.0-web_pwa_customize Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_pwa_customize/it/
… column Odoo does not facilitate inheritance in the function https://github.com/odoo/odoo/blob/3bc173a6b22f2e360ec363277800ee5efa12088f/addons/web/static/src/views/list/list_renderer.js#L406 so it is necessary to force a max width at this low level. In v18, Odoo provides an attribute at the field level https://github.com/odoo/odoo/blob/1702cb44ab7692d70bfabfc25db9592dac85e7a2/addons/web/static/src/views/list/column_width_hook.js#L299 and in this widget Odoo uses a default value, which we also use here, see https://github.com/odoo/odoo/blob/1702cb44ab7692d70bfabfc25db9592dac85e7a2/addons/account/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.js#L249
use components to render axes and aggregates, allowing custom widgets there
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-17.0/web-17.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_x2many_2d_matrix/
Currently translated at 100.0% (8 of 8 strings) Translation: web-17.0/web-17.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_x2many_2d_matrix/it/
Currently translated at 96.7% (30 of 31 strings) Translation: web-17.0/web-17.0-web_responsive Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_responsive/fr/
17.0 update
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Odoo’s default report layout uses a fixed font size for all PDF documents.
In many real use cases, especially when invoice or sales order lines include long product descriptions or detailed content, this results in documents that are difficult to read or excessively long.
This module introduces a configurable font size in the Document Layout settings.
Administrators can choose between 9pt, 10pt, 12pt, and 14pt to optimize readability and space usage, adapting reports to company needs (compactness vs. visibility).