From b2ac220cbee8c0611f45e2381b4de9fd95699575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 6 Sep 2025 12:04:13 +0800 Subject: [PATCH 1/2] =?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_hr_employee/models/yuthon_hr_employee.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yuthon_hr_employee/models/yuthon_hr_employee.py b/yuthon_hr_employee/models/yuthon_hr_employee.py index 9ac2a1767..3fb0f2327 100644 --- a/yuthon_hr_employee/models/yuthon_hr_employee.py +++ b/yuthon_hr_employee/models/yuthon_hr_employee.py @@ -216,6 +216,7 @@ class YuthonHrEmployee(models.Model): last_month_performance_deduction = fields.Float(string="上月绩效扣款") last_month_commuting_deduction = fields.Float(string='上月通信扣款') last_attendance = fields.Boolean(string="上月全勤", store=True) + last_month_overtime = fields.Float(string="上月加班时数") # 请假记录 done_leave = fields.Float(string='年假') From 46c66f8f67b7dbc50f754eea3f457629b577bd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 6 Sep 2025 12:04:35 +0800 Subject: [PATCH 2/2] =?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_stock/models/inherit_stock_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_stock/models/inherit_stock_picking.py b/yuthon_stock/models/inherit_stock_picking.py index c9745c6ae..e498f509b 100644 --- a/yuthon_stock/models/inherit_stock_picking.py +++ b/yuthon_stock/models/inherit_stock_picking.py @@ -42,7 +42,7 @@ class StockPicking(models.Model): @api.depends('origin') def _compute_origin(self): for record in self: - purchase = self.env['purchase.order'].search([('origin', '=', record.origin)], limit=1) + purchase = self.env['purchase.order'].search([('name', '=', record.origin)], limit=1) if purchase: record.user_id = purchase.user_id.id else: