From a4e05fb18548531076f0c2d6b5782f027b0a0e08 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Fri, 23 Feb 2018 11:53:13 +0100 Subject: [PATCH] [FIX] point_of_sale: create picking at pos payment registering previously, it was not possible to complete a payment on return in POS because of a stock move function that does not exist. The commit https://github.com/odoo/odoo/commit/6aebc800538b6fabd79c6cd1e819ef6d961e7589 changed some function names in stock.move model to make them private but the forward-port https://github.com/odoo/odoo/commit/aea68e4730d6c06a111504dacb3357e208971288 was not compatible with these new names. --- addons/point_of_sale/models/pos_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py index af94179c442..864e8c2a208 100644 --- a/addons/point_of_sale/models/pos_order.py +++ b/addons/point_of_sale/models/pos_order.py @@ -732,7 +732,7 @@ class PosOrder(models.Model): # when the pos.config has no picking_type_id set only the moves will be created if moves and not return_picking and not order_picking: moves._action_assign() - moves.filtered(lambda m: m.state in ['confirmed', 'waiting']).force_assign() + moves.filtered(lambda m: m.state in ['confirmed', 'waiting'])._force_assign() moves.filtered(lambda m: m.product_id.tracking == 'none')._action_done() return True