From facdf5712a7d6eec283a922e2f0220d9be1930b5 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Mon, 11 Dec 2023 14:45:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=AC=E4=B8=9C=E7=89=A9?= =?UTF-8?q?=E6=B5=81=E5=AF=BB=E5=8D=95=E6=8D=AE=E9=83=A8=E5=88=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_bf_connect/models/jd_eclp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_bf_connect/models/jd_eclp.py b/sf_bf_connect/models/jd_eclp.py index ecec7dcc..85092b57 100644 --- a/sf_bf_connect/models/jd_eclp.py +++ b/sf_bf_connect/models/jd_eclp.py @@ -70,8 +70,8 @@ class JdEclp(models.Model): sale_order_id = self.env['sale.order'].search([('name', '=', self.origin)]) # stock_picking_type_id = self.enc['stock.picking.type'].search([('picking_type_id', '=', '')]) # if sale_order_id.address_of_delivery != False: - if not sale_order_id: - raise ValidationError("找不到对应的销售订单") + # if not sale_order_id: + # raise ValidationError("找不到对应的销售订单") try: if 'OUT' in self.name and sale_order_id.address_of_delivery: raw_address = sale_order_id.address_of_delivery.split('这是一个标志位,用来不分隔字符串')