diff --git a/addons/crm/views/crm_team_views.xml b/addons/crm/views/crm_team_views.xml index 2645aad2e09..a46e7610baa 100644 --- a/addons/crm/views/crm_team_views.xml +++ b/addons/crm/views/crm_team_views.xml @@ -144,7 +144,8 @@ string="Assign Leads" class="oe_highlight" confirm="This will assign leads to all members. Do you want to proceed?" - invisible="not use_leads and not use_opportunities or not assignment_enabled"/> + invisible="not use_leads and not use_opportunities or not assignment_enabled" + confirm-label="Assign Leads"/> diff --git a/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.js b/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.js index dd1b569a7fa..df0f4303a86 100644 --- a/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.js +++ b/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.js @@ -29,6 +29,9 @@ patch(AttendeeCalendarController.prototype, { title: _t("Configuration"), body: _t("The Google Synchronization needs to be configured before you can use it, do you want to do it now?"), confirm: this.actionService.doAction.bind(this.actionService, syncResult.action), + confirmLabel: _t("Configure"), + cancel: () => {}, + cancelLabel: _t("Discard"), }); } else { this.dialog.add(AlertDialog, { @@ -44,6 +47,7 @@ patch(AttendeeCalendarController.prototype, { async onStopGoogleSynchronization() { this.dialog.add(ConfirmationDialog, { body: _t("You are about to stop the synchronization of your calendar with Google. Are you sure you want to continue?"), + confirmLabel: _t("Stop Synchronization"), confirm: async () => { await this.orm.call( "res.users", diff --git a/addons/mail/static/src/discuss/core/web/discuss_sidebar_categories.js b/addons/mail/static/src/discuss/core/web/discuss_sidebar_categories.js index bfd1393987d..4bc09cb2559 100644 --- a/addons/mail/static/src/discuss/core/web/discuss_sidebar_categories.js +++ b/addons/mail/static/src/discuss/core/web/discuss_sidebar_categories.js @@ -66,6 +66,7 @@ export class DiscussSidebarCategories extends Component { return new Promise((resolve) => { this.dialogService.add(ConfirmationDialog, { body: body, + confirmLabel: _t("Leave Conversation"), confirm: resolve, cancel: () => {}, }); diff --git a/addons/microsoft_calendar/static/src/views/microsoft_calendar/microsoft_calendar_controller.js b/addons/microsoft_calendar/static/src/views/microsoft_calendar/microsoft_calendar_controller.js index 0bf1f984dd7..05034e0692b 100644 --- a/addons/microsoft_calendar/static/src/views/microsoft_calendar/microsoft_calendar_controller.js +++ b/addons/microsoft_calendar/static/src/views/microsoft_calendar/microsoft_calendar_controller.js @@ -28,6 +28,9 @@ patch(AttendeeCalendarController.prototype, { title: _t("Configuration"), body: _t("The Outlook Synchronization needs to be configured before you can use it, do you want to do it now?"), confirm: this.actionService.doAction.bind(this.actionService, syncResult.action), + confirmLabel: _t("Configure"), + cancel: () => {}, + cancelLabel: _t("Discard"), }); } else { this.dialog.add(AlertDialog, { @@ -43,6 +46,7 @@ patch(AttendeeCalendarController.prototype, { async onStopMicrosoftSynchronization() { this.dialog.add(ConfirmationDialog, { body: _t("You are about to stop the synchronization of your calendar with Outlook. Are you sure you want to continue?"), + confirmLabel: _t("Stop Synchronization"), confirm: async () => { await this.orm.call( "res.users", diff --git a/addons/web/static/src/core/debug/debug_menu_items.xml b/addons/web/static/src/core/debug/debug_menu_items.xml index 1b039c7671f..cdfd29b6ffc 100644 --- a/addons/web/static/src/core/debug/debug_menu_items.xml +++ b/addons/web/static/src/core/debug/debug_menu_items.xml @@ -112,4 +112,13 @@ + + + +
+            
+                
+            
+        
+
diff --git a/addons/web/static/src/search/search_bar_menu/search_bar_menu.js b/addons/web/static/src/search/search_bar_menu/search_bar_menu.js index 7df003b5b76..cf043b1182d 100644 --- a/addons/web/static/src/search/search_bar_menu/search_bar_menu.js +++ b/addons/web/static/src/search/search_bar_menu/search_bar_menu.js @@ -203,7 +203,8 @@ export class SearchBarMenu extends Component { title: _t("Warning"), body: userId ? _t("Are you sure that you want to remove this filter?") - : _t("This filter is global and will be removed for everybody if you continue."), + : _t("This filter is global and will be removed for everyone."), + confirmLabel: _t("Delete Filter"), confirm: () => this.env.searchModel.deleteFavorite(itemId), cancel: () => {}, }; diff --git a/addons/web/static/src/views/debug_items.js b/addons/web/static/src/views/debug_items.js index 17b1a9e8a40..5acafc76192 100644 --- a/addons/web/static/src/views/debug_items.js +++ b/addons/web/static/src/views/debug_items.js @@ -24,17 +24,17 @@ debugRegistry.category("view").add("viewSeparator", viewSeparator); // Get view //------------------------------------------------------------------------------ -class GetViewDialog extends Component {} -GetViewDialog.template = xml` - -
-
`; +class GetViewDialog extends Component { + setup() { + this.title = _t("Get View"); + } +} +GetViewDialog.template = "web.DebugMenu.GetViewDialog"; GetViewDialog.components = { Dialog }; GetViewDialog.props = { arch: { type: Element }, close: { type: Function }, }; -GetViewDialog.title = _t("Get View"); export function getView({ component, env }) { return { diff --git a/addons/web/static/src/views/fields/properties/properties_field.js b/addons/web/static/src/views/fields/properties/properties_field.js index 6dd421b1089..2b63b742385 100644 --- a/addons/web/static/src/views/fields/properties/properties_field.js +++ b/addons/web/static/src/views/fields/properties/properties_field.js @@ -491,7 +491,7 @@ export class PropertiesField extends Component { event.preventDefault(); if (!(await this.checkDefinitionWriteAccess())) { this.notification.add( - _t("You need to be able to edit parent first to configure property fields"), + _t("You need edit access on the parent document to update these property fields"), { type: "warning" } ); return; @@ -582,7 +582,7 @@ export class PropertiesField extends Component { async onPropertyCreate() { if (!(await this.checkDefinitionWriteAccess())) { this.notification.add( - _t("You need to be able to edit parent first to configure property fields"), + _t("You need edit access on the parent document to update these property fields"), { type: "warning" } ); return; diff --git a/addons/web_tour/static/src/debug/tour_dialog_component.js b/addons/web_tour/static/src/debug/tour_dialog_component.js index b534971d715..375141798bd 100644 --- a/addons/web_tour/static/src/debug/tour_dialog_component.js +++ b/addons/web_tour/static/src/debug/tour_dialog_component.js @@ -8,6 +8,7 @@ import { Component } from "@odoo/owl"; export default class ToursDialog extends Component { setup() { + this.title = _t("Tours"); this.tourService = useService("tour_service"); this.onboardingTours = this.tourService.getSortedTours().filter(tour => !tour.test); this.testingTours = this.tourService.getSortedTours().filter(tour => tour.test); @@ -40,4 +41,3 @@ export default class ToursDialog extends Component { } ToursDialog.template = "web_tour.ToursDialog"; ToursDialog.components = { Dialog }; -ToursDialog.title = _t("Tours"); diff --git a/addons/web_tour/static/src/debug/tour_dialog_component.xml b/addons/web_tour/static/src/debug/tour_dialog_component.xml index 457ba4e5c1c..c01d6ba360a 100644 --- a/addons/web_tour/static/src/debug/tour_dialog_component.xml +++ b/addons/web_tour/static/src/debug/tour_dialog_component.xml @@ -2,7 +2,7 @@ - + Onboarding tours @@ -11,6 +11,9 @@ Testing tours + + +