1、优化销售订单列表页、详情页字段显示;2、优化新增采购订单列表页、详情页字段显示;
This commit is contained in:
@@ -263,6 +263,7 @@ class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
|
||||
manual_quotation = fields.Boolean('人工编程', default=False)
|
||||
part_name = fields.Char(string='零件名称', readonly=True)
|
||||
|
||||
|
||||
class RePurchaseOrder(models.Model):
|
||||
@@ -378,6 +379,12 @@ class RePurchaseOrder(models.Model):
|
||||
return result
|
||||
|
||||
|
||||
class PurchaseOrderLine(models.Model):
|
||||
_inherit = 'purchase.order.line'
|
||||
|
||||
part_name = fields.Char('零件名称', related='product_id.part_name', readonly=True)
|
||||
|
||||
|
||||
class ResPartnerToSale(models.Model):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user