Skip to content
Snippets Groups Projects
Commit 94d30e32 authored by Eric Horvat's avatar Eric Horvat
Browse files

Merge branch '8.0-ehorvat-FIX-final-first_week_and_period' into '8.0-ehorvat'

[FIX] First period created and linked

See merge request !13
parents 22f1f822 7ed6cc7f
No related branches found
No related tags found
2 merge requests!158.0 ehorvat update,!13[FIX] First period created and linked
......@@ -122,7 +122,8 @@ class RoutePeriodPoint(models.Model):
if len(repositor_id.supervisor_id) > 0:
period_id = self.env['route.period']._check_period(calendar_week_id,repositor_id)
#period_id = self.env['route.period'].search(['&', ('calendar_week_id','=',calendar_week_id.id),('repositor_id','=',repositor_id.id)])
point.period_id = period_id
#point.period_id = period_id
point.update({"period_id": period_id.id})
#self.repositor_id = period_id.repositor_id
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment