Human Resources mailing list archives

hr@odoo-community.org

Avatar

Re: [OCA/hr] [12.0][ADD] hr_holidays_accrual: Advanced accrual leave allocations (#501)

by Alexey Pelykh <notifications@github.com> - 26/03/2019 21:03:46

@alexey-pelykh commented on this pull request.


In hr_holidays_accrual/models/hr_leave_allocation.py:

> +    ):
+        self.ensure_one()
+
+        period = self._get_accrual_period()
+        date_from = self._get_date_from()
+        date_to = self._get_date_to()
+
+        if not date_to or date_to > as_of_datetime:
+            date_to = as_of_datetime
+
+        _logger.info(
+            (
+                'Calculating "%s" leave allocation for employee "%s"'
+                ' between %s and %s with %s period as of %s'
+            ),
+            self.holiday_status_id.name,

done


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.