addons14/project_timesheet_time_control/models/account_analytic_line.py
def _compute_show_time_control(self):
        """Decide when to show time controls."""
        for one in self:
            if one.employee_id not in self.env.user.employee_ids:
                one.show_time_control = False
            elif one.unit_amount or not one.date_time:
                one.show_time_control = "resume"
            else:
                one.show_time_control = "stop"
Decide when to show time controls.
Decide when to show time controls.
Decide when to show time controls .
def _compute_show_time_control(self):
        for one in self:
            if one.employee_id not in self.env.user.employee_ids:
                one.show_time_control = False
            elif one.unit_amount or not one.date_time:
                one.show_time_control = "resume"
            else:
                one.show_time_control = "stop"
def _compute_show_time_control ( self ) : for one in self : if one . employee_id not in self . env . user . employee_ids : one . show_time_control = False elif one . unit_amount or not one . date_time : one . show_time_control = "resume" else : one . show_time_control = "stop"
Decide when to show time controls.
Decide when to show time controls .
"""Decide when to show time controls."""
self