From 0db5ba89bbc891e224d35265a86ed706491b7bdb Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Wed, 6 May 2020 15:56:50 +0200 Subject: [PATCH] [FIX] pos_mail_receipt: pass body_from_ui to record data, needed for create_from_ui() --- pos_mail_receipt/static/src/js/screens.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pos_mail_receipt/static/src/js/screens.js b/pos_mail_receipt/static/src/js/screens.js index fbbd9365..7d67d17c 100644 --- a/pos_mail_receipt/static/src/js/screens.js +++ b/pos_mail_receipt/static/src/js/screens.js @@ -67,6 +67,7 @@ odoo.define("pos_mail_receipt.screens", function (require) { for (var i = 0; i < self.pos.db.get_orders().length; i++) { if (order == self.pos.db.get_orders()[i].data.name) { self.pos.db.get_orders()[i].data["email"] = options["email"] || false; + self.pos.db.get_orders()[i].data["body_from_ui"] = options["body_from_ui"] || false; connection_problem = false; } }