From 93be40e6eb93f880ef482b2524fa8e238dd0099d Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Wed, 21 Aug 2019 08:14:23 +0000 Subject: [PATCH] [FIX] point_of_sale: download invoice from POS When you are creating an invoice from the POS, the report route is called to download the invoice, since changes made in rev: 118190f3b3ecde11d7bcb46301af0e016d6ea19f The values for ids where empty, so we give them now the correct id list. closes odoo/odoo#35889 Signed-off-by: pimodoo --- addons/point_of_sale/static/src/js/models.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index a2da7016a4a..223e87a9ef2 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -872,7 +872,6 @@ exports.PosModel = Backbone.Model.extend({ transfer.then(function(order_server_id){ // generate the pdf and download it if (order_server_id.length) { - order_server_id[0] = order_server_id[0]["id"]; self.chrome.do_action('point_of_sale.pos_invoice_report',{additional_context:{ active_ids:order_server_id, }}).then(function () {