[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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user