解决冲突

This commit is contained in:
huziyang@jikimo.com
2025-06-09 10:01:57 +08:00
72 changed files with 1311 additions and 360 deletions

View File

@@ -795,7 +795,7 @@ class ResProductMo(models.Model):
for record in self:
if record.categ_id.name == '坯料':
product_name = ''
match = re.search(r'(S\d{5}-\d)', record.name)
match = re.search(r'(S\d{5}-\d+)', record.name)
# 如果匹配成功,提取结果
if match:
product_name = match.group(0)