Merge branch 'cor_cr' of https://gitlab.sunarctechnologies.com/prakash.jain/cor-odoo into cor_cr
This commit is contained in:
commit
74830e81f1
|
@ -30,7 +30,11 @@ class ProjectResourceWizard(models.TransientModel):
|
|||
def action_add_project_lines(self):
|
||||
record = self.env['project.sale.line.employee.map']
|
||||
for val in self.add_project_resource:
|
||||
############
|
||||
############# Here we check all start date should be filled
|
||||
if any([val.start_date is False]):
|
||||
raise ValidationError("Please Select Start Date For Every Resource")
|
||||
#############
|
||||
#################
|
||||
if self.project_id.sale_line_employee_ids:
|
||||
for emp in self.project_id.sale_line_employee_ids:
|
||||
if emp.employee_id == val.employee_id and emp.end_date == False and val.start_date:
|
||||
|
|
Loading…
Reference in New Issue