[FIX] point_of_sale: create only one picking when validating order (if the option is activated)

closes odoo/odoo#70190

X-original-commit: 77267c265e6769cd90e8bc61d634b765e04a6829
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Jacky (trj)
2021-04-30 14:34:18 +00:00
parent 849e0a5690
commit bb11164de0
+1 -1
View File
@@ -139,8 +139,8 @@ class PosOrder(models.Model):
raise
except Exception as e:
_logger.error('Could not fully process the POS Order: %s', tools.ustr(e))
pos_order._create_order_picking()
pos_order._create_order_picking()
if pos_order.to_invoice and pos_order.state == 'paid':
pos_order.action_pos_order_invoice()