i'm using odoo 11 and i want to fix the stages in the kanban view of the the model "hr.applicant". At this time , i develop a custom module and i'm able to fix one stage but i want to define all the stage of the recruitment process automatically. Any idea for help please ?
recruitement.py
class Applicant(models.Model): _inherit = 'hr.applicant' def _get_default_stage_id(self): stage_id = super(Applicant, self)._get_default_stage_id() try: stage_id = self.env.ref('sifast_default_stage_recruitement.default_stage_job').id except Exception as e: pass return stage_id
recruitement_view.xml
<?xml version="1.0" encoding="utf-8"?> <odoo> <data noupdate="1"> <record model="hr.recruitment.stage" id="default_stage_job"> <field name="name">CV in progress</field> <field name="sequence">0</field> <field name="name">Technical Test</field> <field name="sequence">1</field> </record> </data> </odoo>