Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1910 Vizualizări

Heloo, i create field Many2one in website job Application Form and that working. But i need this 

@http.route(['/jobs/apply/experienced-developer-4'], type='http', auth="public", website=True)

to make it work. So when i change page to another job position, field Many2one not working, what i must change?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Try to use this controller

@http.route('''/jobs/apply/''', type='http',
auth="public", website=True, sitemap=True)
def jobs_apply(self, job, **kwargs):
""" Used to upload the data in the job forms"""
res = super(WebsiteHrRecruitmentCustom, self).jobs_apply(job, **kwargs)
 
//Add your functions 
 
if you need to add the records you can super the insert_record function
 
 
def insert_record(self, request, model, values, custom, meta=None):
""" Inserting the values from the forms use the function """
 
if model.model == 'hr.applicant':
applicant_id = super(WebsiteFormCustom, self).insert_record(request,
model,
values,
custom,
meta=None)
//Write your codes
 
return application_id

Regards

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 25
1039
2
sept. 22
3865
3
mai 21
4377
4
mai 18
4108
1
ian. 25
1114