From faab90b790fd37c7a90dbb7d8d72293c6594b585 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 20 Oct 2022 09:43:17 +0200 Subject: [PATCH] Skip check_stock_quantity for sales without warehouse issue11799 review433611003 (grafted from 3fa390f939c292a7b92f658ea497056f2a3cfdf5) --HG-- branch : 6.0 --- sale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sale.py b/sale.py index 8e4e92d146..2008f1cda4 100644 --- a/sale.py +++ b/sale.py @@ -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():