odoo/o-spreadsheet#4635

Created by fw-bot
Merged at 5eb4e8853c4189b3eedcb86f9041abe30de52bb5

Statuses:

label
odoo:saas-17.3-17.0-fix-truncate-labels-by-default-dhrp-gDi0-fw
head
97d47ad0baedd8425ab5fd53ea839eab41ad926d
merged
3 months ago by BI, Dhrutik Patel (dhrp)
odoo/o-spreadsheet
17.0 #4596
saas-17.1 #4633
saas-17.2 #4634
saas-17.3 #4635
master #4636

[FW][FIX] charts: truncate labels by default

Description

This PR ensures that labels are truncated by default in charts. The truncation can be disabled by passing the truncate option to the chart configuration.

Task: : 3958962

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo

Forward-Port-Of: #4596


  1. https://github.com/odoo/odoo/blob/8346b2a7561c178fd7e9f9d1fbd7dac3e3843fd1/addons/account/models/account_move.py#L912 ↩↩↩↩

  2. https://github.com/odoo/odoo/blob/8346b2a7561c178fd7e9f9d1fbd7dac3e3843fd1/addons/account/models/account_move.py#L896-L912 ↩↩↩

  3. https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler ↩