修改计算方法名称

This commit is contained in:
liaodanlong
2025-02-26 10:29:01 +08:00
parent d7e3ce2b1a
commit bff10de6b2

View File

@@ -109,9 +109,9 @@ class PurchaseOrder(models.Model):
class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
part_number = fields.Char('零件图号', store=True, compute='_compute_origin_sale_id')
part_number = fields.Char('零件图号', store=True, compute='_compute_related_product')
part_name = fields.Char('零件图号', store=True,
compute='_compute_origin_sale_id')
compute='_compute_related_product')
related_product = fields.Many2one('product.product', string='关联产品',
help='经此产品工艺加工成的成品')
@api.depends('product_id')