changeset 340765e5c830 in modules/sale_stock_quantity:6.0
details:
https://hg.tryton.org/modules/sale_stock_quantity?cmd=changeset&node=340765e5c830
description:
Skip check_stock_quantity for sales without warehouse
issue11799
review433611003
(grafted from 3fa390f939c292a7b92f658ea497056f2a3cfdf5)
diffstat:
sale.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 24f1b92a138b -r 340765e5c830 sale.py
--- a/sale.py Mon May 03 16:05:43 2021 +0200
+++ b/sale.py Thu Oct 20 09:43:17 2022 +0200
@@ -66,6 +66,9 @@
Line = pool.get('sale.line')
Warning = pool.get('res.user.warning')
+ if not self.warehouse:
+ return
+
transaction = Transaction()
def in_group():