[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) <rde@odoo.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user