Update project.py
This commit is contained in:
parent
f0cf8aa774
commit
4fa89867c5
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in New Issue