uncommit code

This commit is contained in:
projectsodoo 2021-01-07 15:10:25 +05:30
parent e0f44061b3
commit bc27b5b100
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ class AccountAnalyticLine(models.Model):
end_time = fields.Float(string='End Time', digits=(16, 2))
unit_amount = fields.Float('Duration', default=0.0)
@api.onchange('employee_id')
"""@api.onchange('employee_id')
def _onchange_employee_id(self):
domain = []
if self.employee_id and self.employee_id.user_id:
@ -34,9 +34,9 @@ class AccountAnalyticLine(models.Model):
result = {
'domain': {'project_id': domain},
}
return result
return result"""
@api.onchange('project_id')
"""@api.onchange('project_id')
def _onchange_project_id(self):
domain = [] if not self.project_id else [('project_id', '=', self.project_id.id)]
manager_id = []
@ -59,7 +59,7 @@ class AccountAnalyticLine(models.Model):
if self.project_id != self.task_id.project_id:
# reset task when changing project
self.task_id = False
return result
return result"""
_sql_constraints = [
('check_start_time_lower_than_24', 'CHECK(start_time <= 24)', 'You cannot have a start hour greater than 24'),