解决修改产品名称带来的影响
This commit is contained in:
@@ -150,6 +150,8 @@ class PurchaseRequestLine(models.Model):
|
||||
# 如果匹配成功,提取结果
|
||||
if match:
|
||||
product_name = match.group(0)
|
||||
else:
|
||||
product_name = record.product_id.name
|
||||
sale_order_name = ''
|
||||
match_sale = re.search(r'S(\d+)', record.product_id.name)
|
||||
if match_sale:
|
||||
|
||||
Reference in New Issue
Block a user