1、优化销售订单列表页、详情页字段显示;2、优化新增采购订单列表页、详情页字段显示;

This commit is contained in:
yuxianghui
2024-12-18 16:39:54 +08:00
parent 202fafac84
commit 15eb36a5bc
3 changed files with 24 additions and 1 deletions

View File

@@ -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'