diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index 5cffa2d05..7ce5eae47 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -16,6 +16,7 @@ class InheritPurchaseOrder(models.Model): store=True ) name_title = fields.Char(string="默认标题", default='采购申请单', readonly=True) + name = fields.Char(string="标题", default=False) code = fields.Char(string="流水号", default=lambda self: self.env['ir.sequence'].next_by_code('purchase_workflow_approval_code')) state = fields.Selection(selection_add=[('申请人', '申请人'), ('部门经理', '部门经理'), ('工会主席', '工会主席'), ('协办', '协办'),