|
|
@@ -22,11 +22,13 @@ class PlanningSlot(models.Model):
|
|
|
|
|
|
real_working_days_count = fields.Float(
|
|
|
string='Real Working Days',
|
|
|
+ compute='_compute_working_days_count',
|
|
|
store=True,
|
|
|
+ help='Number of working days available in the month, regardless of slot start and end dates'
|
|
|
)
|
|
|
|
|
|
+ @api.depends('start_datetime', 'end_datetime', 'resource_id', 'company_id')
|
|
|
def _compute_working_days_count(self):
|
|
|
- super(PlanningSlot, self)._compute_working_days_count()
|
|
|
for slot in self:
|
|
|
if not slot.start_datetime:
|
|
|
slot.real_working_days_count = 0
|