Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

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

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
recruitmentcontrollersv14
2 Replies
5472 Tampilan
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
Buang
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
Penulis

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
Penulis

Cool, looking forward to Krys

Jay
Penulis

In your own free time Krys.Raj.

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

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
Jawaban Terbai

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
Buang
Jay
Penulis

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
Penulis

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
Penulis

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
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
how to call http controller from js ? Diselesaikan
controllers v14
Avatar
Avatar
Avatar
Avatar
3
Agu 23
6180
Get host address or domain Diselesaikan
controllers v14
Avatar
1
Des 24
5209
Overide placeholder.png/placeholder function in web
controllers v14
Avatar
0
Jun 21
3240
odoo 14: override controller to add more fields in Odoo SignUp form Diselesaikan
override controllers v14
Avatar
Avatar
Avatar
2
Mei 24
5996
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
3959
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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