[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: 118190f3b3

The values for ids where empty, so we give them now the correct id list.

closes odoo/odoo#35889

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Pierre Masereel
2019-08-21 09:59:57 +00:00
parent 2408befc8d
commit 93be40e6eb
@@ -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 () {