odoo/odoo#199898
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-18.1-18.0-opw-4568804-long_reference_numbers-csan-416894-fw
- head
- bda5dbae3fc62534b9e2ea9617de12e19dafbedb
- merged
- 3 months ago by Carmine Santomauro (csan)
odoo/odoo | |
---|---|
18.0 | #198142 |
saas-18.1 | #199898 |
saas-18.2 | #200008 |
saas-18.3 | |
master | #200025 |
[FW][FIX] product: show full reference numbers longer than 10 digits
Issue:
When printing labels in Dymo format, product reference numbers longer than 10 digits are truncated, resulting in incomplete information.
Steps to Reproduce:
1. Install the Sales app
2. Navigate to Sales > Products
3. Select or create a product with a reference number longer than 10 digits
4. Click Print Labels > Dynamo format > Confirm
5. Notice that the reference number is cut off after 10 digits
Expected Behavior: The full reference number should be visible on the product label, regardless of length
Actual Behavior: Reference numbers longer than 10 digits are truncated, showing only the first 10 digits.
Root Cause
The issue arises from a override(2b32d1431a33dea9052be3be4f9668a92cd0422e) to the font size of the <small> tag added to Bootstrap. Previously, the font size was set to 0.875em, but it has been updated to 0.8125rem. This change affects text rendering and causes a smaller number of digits to be displayed compared to previous versions.
Fix
To maintain consistency with Odoo 17.0, the font size of the <small> tag is explicitly overridden to ensure the same number of digits is displayed as before.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #198142