Merge branch 'develop' into feature/commercially_launched

This commit is contained in:
胡尧
2025-03-14 13:52:18 +08:00
7 changed files with 79 additions and 48 deletions

View File

@@ -117,6 +117,8 @@ class PurchaseOrderLine(models.Model):
@api.depends('product_id')
def _compute_related_product(self):
for record in self:
if record.part_number or record.part_name:
continue
if record.product_id.categ_id.name == '坯料':
product_name = ''
match = re.search(r'(S\d{5}-\d)', record.product_id.name)