Update project.py

This commit is contained in:
zainab2097 2024-08-28 18:11:43 +03:00 committed by GitHub
parent f0cf8aa774
commit 4fa89867c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ class Project(models.Model):
'&',('res_model', '=', 'project.phase'),
('res_id', 'in', self.project_phase_ids.ids),
]
@api.onchange('department_execute_id')
def onchange_department_execute_id(self):
self.analytic_account_id = self.department_execute_id.analytic_account_id.id
def _compute_attached_docs_count(self):
Attachment = self.env['ir.attachment']