From 7dbfa4b2674c0bdf359d8d5b9402fb5c9da52166 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 16 Jun 2025 14:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_purchase/models/inherit_purchase_order.py | 2 ++ yuthon_purchase/views/inherit_purchase_order_views.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index 571aba687..8fe8f2e63 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -12,6 +12,8 @@ class PurchaseOrder(models.Model): company_id = fields.Many2one('res.company', string="公司", default=lambda self: self.env.company) user_id = fields.Many2one('res.users', string="申请人", default=lambda self: self.env.user) department_id = fields.Many2one(related='user_id.employee_id.department_id', string="部门") + date_order = fields.Datetime(string="订单日期") + date_planned = fields.Datetime(string="预计到货日期") start_date = fields.Date(string="申请日期", default=fields.Date.today) reason_text = fields.Text(string='申请事由') document_ids = fields.Many2many('ir.attachment', string="附件") diff --git a/yuthon_purchase/views/inherit_purchase_order_views.xml b/yuthon_purchase/views/inherit_purchase_order_views.xml index be71454cb..3ece739af 100644 --- a/yuthon_purchase/views/inherit_purchase_order_views.xml +++ b/yuthon_purchase/views/inherit_purchase_order_views.xml @@ -39,6 +39,8 @@ + +