修改计算方法名称
This commit is contained in:
@@ -109,9 +109,9 @@ class PurchaseOrder(models.Model):
|
|||||||
class PurchaseOrderLine(models.Model):
|
class PurchaseOrderLine(models.Model):
|
||||||
_inherit = 'purchase.order.line'
|
_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,
|
part_name = fields.Char('零件图号', store=True,
|
||||||
compute='_compute_origin_sale_id')
|
compute='_compute_related_product')
|
||||||
related_product = fields.Many2one('product.product', string='关联产品',
|
related_product = fields.Many2one('product.product', string='关联产品',
|
||||||
help='经此产品工艺加工成的成品')
|
help='经此产品工艺加工成的成品')
|
||||||
@api.depends('product_id')
|
@api.depends('product_id')
|
||||||
|
|||||||
Reference in New Issue
Block a user