From 018b51e1e5fdd93d2e101b2fd0effc29392e3c2e Mon Sep 17 00:00:00 2001 From: "qihao.gong@jikimo.com" Date: Fri, 27 Oct 2023 15:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=97=A0=E6=B3=95=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=87=87=E8=B4=AD=E5=8D=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_warehouse/models/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index eafdffac..65bdc0ea 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -237,4 +237,6 @@ class SfProcurementGroup(models.Model): for res1 in res_list: if product_id.categ_id in res1.location_dest_id.product_type: res = res1 + if not res: + res = Rule.search(expression.AND([[('route_id', 'in', warehouse_routes.ids)], domain]), order='route_sequence, sequence', limit=1) return res \ No newline at end of file