[FIX] web: use different hotkeys for 'ADD' and 'SAVE' buttons
A modal using the 'ADD' and 'SAVE' buttons will have the same keyboard shortcut for both of these buttons Steps to reproduce: 1. Install Inventory 2. Go to Inventory > Operations > Transfers and open a transfer with a contact and in status 'Ready' 3. Click on 'EDIT' and open the contact in the Delivery Address with the quick edit button 4. Push on 'Alt' key: the 'ADD' and 'SAVE' buttons use the same shortcut Solution: Modify the current hotkey used for button 'SAVE' opw-2954146 closes odoo/odoo#98884 X-original-commit: 0f8d28269f4900e70d7fefbb359580390656cdf7 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
This commit is contained in:
@@ -135,7 +135,7 @@ var FormViewDialog = ViewDialog.extend({
|
||||
options.buttons.unshift({
|
||||
text: options.save_text || (multi_select ? _t("Save & Close") : _t("Save")),
|
||||
classes: "btn-primary",
|
||||
hotkey: 'c',
|
||||
hotkey: 's',
|
||||
click: function () {
|
||||
self._save().then(self.close.bind(self));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user