Merge branch 'develop' into feature/commercially_launched
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user