remove check box condition from subproject compute method
This commit is contained in:
parent
242790bfa4
commit
d8dac35632
|
@ -40,7 +40,7 @@ class AccountAnalyticLine(models.Model):
|
|||
@api.depends('project_id', 'sub_project')
|
||||
def compute_sub_project_id(self):
|
||||
for record in self:
|
||||
if record.project_id and record.project_id.is_sub_project == True and record.project_id.sub_project:
|
||||
if record.project_id and record.project_id.sub_project:
|
||||
record.sub_project_ids = record.project_id.sub_project.ids
|
||||
else:
|
||||
record.sub_project_ids = False
|
||||
|
|
Loading…
Reference in New Issue