diff --git a/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml b/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml index 7b78edea7..39be81eb1 100644 --- a/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml +++ b/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml @@ -106,8 +106,8 @@ - - + +

diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 326cde850..4643476d7 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -50,6 +50,11 @@ class PropertyBankStatements(models.Model): self._context.get('active_ids', self._context.get('active_id'))) for rec in bank_ids: rec.revocation() + def test_one(self): + bank_ids = self.env["property.bank.statements"].browse( + self._context.get('active_ids', self._context.get('active_id'))) + for rec in bank_ids: + rec.start_time = rec.start_time - timedelta(hours=8) def revocation(self): for rec in self: diff --git a/yuthon_property_approval/views/inherit_yuthon_property_views.xml b/yuthon_property_approval/views/inherit_yuthon_property_views.xml index 0f3e0f81e..05453d67a 100644 --- a/yuthon_property_approval/views/inherit_yuthon_property_views.xml +++ b/yuthon_property_approval/views/inherit_yuthon_property_views.xml @@ -528,6 +528,13 @@ code action = model.batch_revocation() + + 一次性时差更新 + + + code + action = model.test_one() + property.penalty.list.tree