I add this code as server action for hr.applicant. Call this in Automated action.
active_id = context.get('active_id')
applicant_obj = self.pool.get('hr.applicant')
project_obj = self.pool.get('x_project.details')
if project_id:
applicant_record = self.browse(cr, uid, ids, active_id, context=context)
project_obj.create(cr, uid, project_id, {'x_project': applicant_record.x_project}, context=context)
i have added x_project in hr.applicant & x_project.details models. Then i want to write the value of x_project in hr.applicant & x_project in x_project.details models.
Is the code correct?