Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

How do I inherit a website page, Job Application Form in hr.job odoo 14 and add a field and add override submit button?

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
recruitmentcontrollersv14
2 Risposte
5570 Visualizzazioni
Avatar
Jay

I want to inherit the Job Application Form in hr.job odoo website and add a field.

Also, how do I override submit button function and add some functionality to it?

How do I use controllers or smth to go about this?
Any assistance will be highly appreciated.

1
Avatar
Abbandona
Krys.Raj

Jay, hope your last post is solved..
Regarding currnet one - Could you paste a link to a screenshot of the view you would like to modify?
you can use free image hosting to post image link
imgbb.com
I will answer but in a 3-4 hours.. I have a important meeting in a minute. See ya, Jay!

Jay
Autore

I want to add a field under your phone number.
https://ibb.co/4KQvSqM

Krys.Raj

Ok, I will help you with it, but now not in the office ...
in 3 hours will be back! See you Jay, maybe until that time someone will help you :)

Sent from Mailspring
Jay
Autore

Cool, looking forward to Krys

Jay
Autore

In your own free time Krys.Raj.

Krys.Raj
Currently writing an answer, in 10 minutes it will be there...
Sent from Mailspring
Jay
Autore

Cool.

Krys.Raj
The Answer editor is a disater, when you pasting the links and editing code.. :(
Comments works quite well in the opposite. Ok, that's the answer for now. Got to go!

Sent from Mailspring
Avatar
Krys.Raj
Risposta migliore

Hello Jay,
First you need to know what template you are going to modify
https://github.com/odoo/odoo/blob/e2788b580ef15ef3083ac919737a46d850143832/addons/website_hr_recruitment/views/website_hr_recruitment_templates.xml#L131
look since 131 line - you got the "apply" template. Now your job is to inherit it, and tell with xpath what to do (add/remove/modify) so... to add a field there you first need to know the field name (if it exists) or create one if you need it.

Then tell with xpath to insert the additional block of your custom code including your field, respecting the template structure. To add a field after the phone number code will be like this:

<template id="user_navbar_inherit_website_hr_recruitment" inherit_id="website_hr_recruitment.apply">
<xpath expr="//form[@id='hr_recruitment_form']/div/div[3]" position="after">
<div class="form-group col-12 s_website_form_field s_website_form_required" data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="recruitment8">
<span class="s_website_form_label_content">Your custom field</span>
<span class="s_website_form_mark"> *</span>
</label>
<div class="col-sm">
<input id="recruitment8" type="tel" class="form-control s_website_form_input" name="your_custom_field" required=""/>
</div>
</div>
</div>
</xpath>
</template>

PasteBin version: https://pastebin.com/kwjyNfsg

result link
https://ibb.co/0C9L0Wv

That's it about the form.

Regarding the data of the custom field .. please take a closer look at the right controller.
To find it first look where the Submit button will procees the form - URL (bottom left corner)
https://ibb.co/WN9J1PK

Now just find ther right controller check how it processes the data and modify by inheriting
controller is here:
https://github.com/odoo/odoo/blob/2e728f21bbc2771a8793d20e371f2fb7aea33e80/addons/website_hr_recruitment/controllers/main.py#L92

It's really to much to explain how to modify.. you need to be precise here. But in the weekend you can study a little bit.


Temporary, vote +1 if I helped. :)

2
Avatar
Abbandona
Jay
Autore

wow, well explained Krys.Raj.
Going through it and will let you know in a minute how it goes.
Thanks a lot for taking your time to help.

Jay
Autore

Working perfectly well, one last thing,
what if 'your_custom_field' is the Many2one field, where do I change to pull the data from db?

Jay
Autore

Hi, Krys.Raj.

I want to inherit the recruitment job application page --> website https://ibb.co/tcCxBY7 and add survey questions from the survey module associated with the job position in Odoo 14 recruitment module.

I want to add the survey questions after the applicant submits their job application and before the applicant receives the congratulation message --> https://ibb.co/mzbk78J. This is because I want their survey to be associated with them i.e. their id.

How can I go about this?
Thank you for your assistance in advance.

Avatar
Dicky Prasetiyo
Risposta migliore

Sorry, i have some problem here. When my costume is Many2one field, i cannot see any data in online job form. And when submit data in online job form, field custom data from applicant odoo is not include

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
how to call http controller from js ? Risolto
controllers v14
Avatar
Avatar
Avatar
Avatar
3
ago 23
6285
Get host address or domain Risolto
controllers v14
Avatar
1
dic 24
5287
Overide placeholder.png/placeholder function in web
controllers v14
Avatar
0
giu 21
3319
odoo 14: override controller to add more fields in Odoo SignUp form Risolto
override controllers v14
Avatar
Avatar
Avatar
2
mag 24
6080
Odoo 14, how to link job application form with the job's survey questions, so that applicant can fill the survey after applying for the job.
email recruitment v14
Avatar
0
feb 22
4060
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now