Skip to content
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

Fix salesagility#10621 - The values in a checkbox must be in the respective language #10622

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from

Conversation

SinergiaCRM
Copy link
Contributor

Description

Fixing #10621

As mentioned in the issue, it has been found that, when displaying checkbox type field data in a PDF Template, the values are only displayed in English. Currently, the templates display “true” or “false”.

Motivation and Context

The different strings of the values of the checkboxes that appeared at the beginning in English have been implemented, so the translate() function has been implemented to pick up these strings according to the language of the instance.

How To Test This

  1. Go to Studio and, in any module, create a field of type “Checkbox”.
  2. Then, create a PDF template of that module.
  3. Generate the template and check that the answer of that checkbox is in the language selected in the login or the default language of the instance.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant