Skip check_stock_quantity for sales without warehouse

issue11799
review433611003
(grafted from 3fa390f939c292a7b92f658ea497056f2a3cfdf5)

--HG--
branch : 6.0
This commit is contained in:
Sergi Almacellas Abellana committed 2022-10-20 09:43:17 +02:00
1 parent 2e56f2e70a
commit faab90b790
1 file changed
+3
+3
View File
@@ -66,6 +66,9 @@ class Sale(metaclass=PoolMeta):
Line = pool.get('sale.line')
Warning = pool.get('res.user.warning')
if not self.warehouse:
return
transaction = Transaction()
def in_group():