From 9ac9a6951dd5c772667101d2f97e09e82b49add8 Mon Sep 17 00:00:00 2001 From: maltayyar2 Date: Mon, 29 Dec 2025 12:11:09 +0300 Subject: [PATCH] [I18N] system_dashboard_classic: automatic update Auto-generated commit based on local changes. --- .../system_dashboard_classic/i18n/ar_001.po | 16 ++++++++++++++ .../src/js/system_dashboard_self_service.js | 21 +++++++++---------- .../views/dashboard_settings.xml | 3 +-- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/odex25_base/system_dashboard_classic/i18n/ar_001.po b/odex25_base/system_dashboard_classic/i18n/ar_001.po index 8f82b4e6c..21750d69a 100644 --- a/odex25_base/system_dashboard_classic/i18n/ar_001.po +++ b/odex25_base/system_dashboard_classic/i18n/ar_001.po @@ -931,3 +931,19 @@ msgstr "" #: model:ir.model.fields,field_description:system_dashboard_classic.field_stage_stage__value msgid "value" msgstr "القيمة" + +#. module: system_dashboard_classic +#: model_terms:ir.ui.view,arch_db:system_dashboard_classic.res_config_settings_view_form_dashboard +msgid "Work Timer Settings" +msgstr "إعدادات مؤقت العمل" + +#. module: system_dashboard_classic +#: model:ir.model.fields,field_description:system_dashboard_classic.field_res_config_settings__dashboard_show_work_timer +#: model_terms:ir.ui.view,arch_db:system_dashboard_classic.res_config_settings_view_form_dashboard +msgid "Show Work Timer" +msgstr "إظهار مؤقت العمل" + +#. module: system_dashboard_classic +#: model_terms:ir.ui.view,arch_db:system_dashboard_classic.res_config_settings_view_form_dashboard +msgid "Display live work hour countdown timer with real-time remaining hours" +msgstr "عرض مؤقت تنازلي لساعات العمل يُظهر الوقت المتبقي حتى نهاية الدوام" diff --git a/odex25_base/system_dashboard_classic/static/src/js/system_dashboard_self_service.js b/odex25_base/system_dashboard_classic/static/src/js/system_dashboard_self_service.js index 37783e3f1..10337ba89 100644 --- a/odex25_base/system_dashboard_classic/static/src/js/system_dashboard_self_service.js +++ b/odex25_base/system_dashboard_classic/static/src/js/system_dashboard_self_service.js @@ -683,9 +683,11 @@ odoo.define('system_dashboard_classic.dashboard_self_services', function(require // ACTIVE TAB HANDLING - Activate correct tab from context // Used when returning from approval record view via breadcrumb // Note: 'context' here is actually the action object + // additional_context merges into context.context // ============================================================ - var activeTab = (context && context.params && context.params.active_tab) || - (context && context.context && context.context.active_tab); + var activeTab = (context && context.context && context.context.active_tab) || + (context && context.params && context.params.active_tab) || + (context && context.active_tab); if (activeTab === 'to_approve') { setTimeout(function() { $('a[href="#to_approve"]').tab('show'); @@ -1860,17 +1862,14 @@ odoo.define('system_dashboard_classic.dashboard_self_services', function(require var self = this; }, reload: function(options) { - // Properly reload dashboard by triggering the action again - // options.active_tab can be passed to specify which tab to open + // Properly reload dashboard by triggering the registered action + // This ensures proper translation and breadcrumb behavior var activeTab = (options && options.active_tab) || 'to_approve'; - this.do_action({ - name: _t('Self-Service'), - type: 'ir.actions.client', - tag: 'system_dashboard_classic.dashboard_self_services', - target: 'main', - params: { + this.do_action('system_dashboard_classic.action_self_service_dashboard', { + additional_context: { active_tab: activeTab - } + }, + clear_breadcrumbs: true }); }, /** diff --git a/odex25_base/system_dashboard_classic/views/dashboard_settings.xml b/odex25_base/system_dashboard_classic/views/dashboard_settings.xml index bfff35a64..5dcbcc35f 100644 --- a/odex25_base/system_dashboard_classic/views/dashboard_settings.xml +++ b/odex25_base/system_dashboard_classic/views/dashboard_settings.xml @@ -244,8 +244,7 @@