From 5c08d0a47c7836ddb2cb42828680442f4889f3e0 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Tue, 8 Nov 2022 09:05:57 +0000 Subject: [PATCH] [FIX] website: not mention "model" in tooltip This commit updates the tooltips of disabled form field's duplicate & remove buttons so that they do not reference the concept of "model". task-2950433 closes odoo/odoo#105278 Signed-off-by: Romain Derie (rde) --- addons/website/static/src/snippets/s_website_form/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/snippets/s_website_form/options.js b/addons/website/static/src/snippets/s_website_form/options.js index a1c91ef48f9..5c117a6fdbc 100644 --- a/addons/website/static/src/snippets/s_website_form/options.js +++ b/addons/website/static/src/snippets/s_website_form/options.js @@ -1481,7 +1481,7 @@ const DisableOverlayButtonOption = options.Class.extend({ // Disable duplicate button for model fields options.registry.WebsiteFormFieldModel = DisableOverlayButtonOption.extend({ start: function () { - this.disableButton('clone', _t('You can\'t duplicate a model field.')); + this.disableButton('clone', _t('You cannot duplicate this field.')); return this._super.apply(this, arguments); } }); @@ -1489,7 +1489,7 @@ options.registry.WebsiteFormFieldModel = DisableOverlayButtonOption.extend({ // Disable delete button for model required fields options.registry.WebsiteFormFieldRequired = DisableOverlayButtonOption.extend({ start: function () { - this.disableButton('remove', _t('You can\'t remove a field that is required by the model itself.')); + this.disableButton('remove', _t('This field is mandatory for this Action. You cannot remove it.')); return this._super.apply(this, arguments); } });