diff --git a/addons/pos_restaurant/static/src/app/control_buttons/orderline_note_button/orderline_note_button.js b/addons/pos_restaurant/static/src/app/control_buttons/orderline_note_button/orderline_note_button.js index 31e7d0009d9..f686a9fe97c 100644 --- a/addons/pos_restaurant/static/src/app/control_buttons/orderline_note_button/orderline_note_button.js +++ b/addons/pos_restaurant/static/src/app/control_buttons/orderline_note_button/orderline_note_button.js @@ -22,6 +22,7 @@ export class OrderlineNoteButton extends Component { return; } + const oldNote = this.selectedOrderline.getNote(); const { confirmed, payload: inputNote } = await this.popup.add(TextAreaPopup, { startingValue: this.selectedOrderline.getNote(), title: _t("Add internal Note"), @@ -30,6 +31,8 @@ export class OrderlineNoteButton extends Component { if (confirmed) { this.selectedOrderline.setNote(inputNote); } + + return { confirmed, inputNote, oldNote }; } }