[FIX/UPDT] code_backend_theme, web_login_styles: sync fixes from odoodevs#424
Open
maurorosero wants to merge 8 commits into
Open
[FIX/UPDT] code_backend_theme, web_login_styles: sync fixes from odoodevs#424maurorosero wants to merge 8 commits into
maurorosero wants to merge 8 commits into
Conversation
…model - Use babel.dates to render month names in the user's language instead of hardcoded English via calendar.month_name / TO_CHAR. - Read mail_activity_type.name from the user's lang (translate=True field) with fallback to en_US instead of forcing 'en_US'. - Wrap 'Expected without Won', 'Won', 'Lost' with _() for translation. - Group lost-leads query by month number (locale-independent) and label months on the Python side to keep ordering stable across DB locales.
- Import _t from @web/core/l10n/translation. - Pre-translate all visible UI strings (titles, period labels, chart legends, action names) into a state.texts map so they can be looked up from the QWeb template, which has no _t in its context. - Wrap action.doAction 'name' and Chart.js 'label' strings with _t().
…le strings Replace all hardcoded English text in dashboard_templates.xml with state.texts.* lookups, which are pre-translated in crm_dashboard.js via _t(). This allows the dashboard UI to be translated per-user.
Minor version bump for translation/i18n improvements.
Add .po files for English (en), Spanish variants (es, es_419, es_AR, es_CL, es_CO, es_MX, es_PA, es_PE, es_VE) and Portuguese variants (pt, pt_BR, pt_PT).
[UPDT] crm_dashboard: add i18n support and localize UI strings
The 'webNavbarAppMenu.js' asset path was split across two adjacent string literals, which produces a SyntaxError at module load. Concatenate into a single valid path. Bump version 19.0.1.0.0 → 19.0.1.0.1.
- Replace 'super(ResConfigSettings, self)' with 'super()' (Python 3 style). - Replace 'res.update(image=...)' with 'res['image'] = ...' to keep the default dict shape intact when extending it. Bump version 19.0.1.0.1 → 19.0.1.0.2.
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
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.
Title
[FIX/UPDT] code_backend_theme, web_login_styles: sync fixes from odoodevs
Description
Summary
Sync two small fixes from the local
odoodevs/addons/basecheckout backinto CybroAddons. Both modules already exist in CybroAddons but were
slightly out of date compared to the working copies.
Changes
code_backend_themeThe asset path for
webNavbarAppMenu.jsin__manifest__.pywas splitacross two adjacent string literals, producing an invalid path (and, in
strict parsers, a
SyntaxErrorat module load).Version:
19.0.1.0.0→19.0.1.0.1.web_login_stylesModernize
models/res_config_settings.py:super(ResConfigSettings, self)→super()(Python 3 style).res.update(image=params.get_param(...))→res['image'] = params.get_param(...)to preserve the default dict shape from the parent.
Version:
19.0.1.0.1→19.0.1.0.2.Test plan
code_backend_themeto19.0.1.0.1, install, hard-refreshthe browser, confirm the backend theme loads without console errors
and the navbar appmenu renders correctly.
web_login_stylesto19.0.1.0.2, install, open Settings →Website → Login Styles, change the background image, save, reload
and confirm the image is preserved on the login page.