remove check box condition from subproject compute method

This commit is contained in:
sunarctech 2022-11-07 14:37:23 +05:30
parent 242790bfa4
commit d8dac35632
1 changed files with 1 additions and 1 deletions

View File

@ -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