Merge pull request !4932 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-09-06 04:05:30 +00:00
committed by Gitee
2 changed files with 2 additions and 1 deletions
@@ -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='年假')
+1 -1
View File
@@ -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: