Merge branch 'sub_project_timesheet' into 'master'

remove check box condition from subproject compute method

See merge request prakash.jain/cor-odoo!272
This commit is contained in:
pawan.sharma 2022-11-07 14:43:00 +05:30
commit 897afff164
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