From d8dac35632922554d2bd28a511ad841c2712152c Mon Sep 17 00:00:00 2001 From: sunarctech Date: Mon, 7 Nov 2022 14:37:23 +0530 Subject: [PATCH] remove check box condition from subproject compute method --- cor_custom/models/analytic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cor_custom/models/analytic.py b/cor_custom/models/analytic.py index bc2032c..0a7d814 100755 --- a/cor_custom/models/analytic.py +++ b/cor_custom/models/analytic.py @@ -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