summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/wizard
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-10-17 11:24:10 +0000
committerPierre Masereel <pim@odoo.com>2019-11-07 09:34:01 +0000
commit2f2bde5d9f647e4785ffabdc1b2e07a08722309c (patch)
tree399aafd6a9fe5005a8a776784eedd84f2ac23558 /addons/point_of_sale/wizard
parent293cc0eeaba8b9328470a15c32fb093cd05fa26a (diff)
[IMP] point_of_sale: create picking after closing session
When you have a lot of pos order to synchronize with Odoo, it may take a lot of time because it has to create a picking for each order. So we've added an option in the settings that will create the picking at the end of the session. So the new option by default is creating the picking at session closure, and if you need a real time stock you can enable the creation of picking for each order. closes odoo/odoo#39584 Task-id: 2082064 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/wizard')
-rw-r--r--addons/point_of_sale/wizard/pos_payment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/point_of_sale/wizard/pos_payment.py b/addons/point_of_sale/wizard/pos_payment.py
index f028ea8e83f..ac753f403f6 100644
--- a/addons/point_of_sale/wizard/pos_payment.py
+++ b/addons/point_of_sale/wizard/pos_payment.py
@@ -56,6 +56,7 @@ class PosMakePayment(models.TransientModel):
if float_is_zero(order.amount_total - order.amount_paid, precision_rounding=currency.rounding):
order.action_pos_order_paid()
+ order._create_order_picking()
return {'type': 'ir.actions.act_window_close'}
return self.launch_payment()