Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How can I automatically call the function action_start_survey when a new job application is created.

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
surveyAutomatedActions#recruitment#V11
1 Răspunde
2533 Vizualizări
Imagine profil
Bill Ennals

In Odoo V11 (I know...need to upgrade soon) CE, I'm trying to automate a part of the recruitment process.

I'm using hr_recruitment_survey and I would like to automatically send new applicants an email with a link to the job interview survey with their specific response_id.

I know how to configure the email to be sent automatically, and the post in this link:

https://www\\.odoo\\.com/forum/help\\-1/interview\\-form\\-in\\-applicant\\-email\\-template\\-in\\-recruitment\\-module\\-131408

\\.\\.\\.makes\\ reference\\ to\\ the\\ correct\\ placeholder\\ to\\ use\\ to\\ pull\\ the\\ unique\\ response_id\\ \\(green\\ rectangle\\ in\\ image\\ below\\)\\ for\\ the\\ application\\ in\\ question,\\ but\\ it\\ will\\ only\\ work\\ if\\ the\\ 'Start\\ Interview'\\ button\\ has\\ been\\ clicked\\ once\\.

Can\\ I\\ create\\ an\\ automatic\\ action\\ that\\ will\\ call\\ this\\ function\\ when\\ a\\ new\\ application\\ is\\ created\\?

Alternatively,\\ can\\ I\\ inherit\\ the\\ hr\\.applicant\\ model\\ and\\ customize\\ it\\ so\\ that\\ 'response_id'\\ is\\ automatically\\ created\\ when\\ a\\ new\\ application\\ is\\ created\\?

If\\ either\\ of\\ the\\ above\\ options\\ is\\ possible,\\ I\\ would\\ appreciate\\ some\\ help\\ with\\ the\\ code\\ \\(I'm\\ just\\ a\\ self\\-taught\\ beginner\\)\\. \\ I've\\ made\\ some\\ attempts\\ borrowing\\ from the\\ code that\\ defines\\ 'action_start_survey',\\ but\\ I'm\\ really\\ just\\ stabbing\\ in\\ the\\ dark,\\ so\\ everything\\ failed\\.

Thanks\\ for\\ reading!

p\.s\.\ Apologies\ for\ the\ backslash\ attack\. \ I've\ run\ out\ of\ patience\ trying\ to\ fix\ it\. \ Boy\ is\ this\ forum\ software\ buggy!

​


0
Imagine profil
Abandonează
Imagine profil
Bill Ennals
Autor Cel mai bun răspuns

I figured out how to do this myself.

I made an automated action of the 'Execute several actions' type.  Here it is:

​

Here\ are\ the\ individual\ automated\ actions\ that\ make\ up\ the\ combined\ action:

Calling\ the\ function\ to\ start\ the\ survey\ turned\ out\ to\ be\ very\ simple!

To\ send\ the\ email,\ I\ was\ trying\ use\ an\ automated\ action\ to\ send\ an\ email\ with\ the\ link\ to\ the\ survey\ directly,\ but\ I\ couldn't\ get\ the\ email\ template\ to\ pull\ the\ applicant's\ email\ address\ into\ the\ 'To'\ field,\ so\ it\ wouldn't\ send\.

I\ gave\ up\ eventually\ and\ used\ the\ built\-in\ feature\ where\ you\ can\ set\ an\ automated\ email\ to\ be\ sent\ to\ an\ applicant\ when\ their\ application\ is\ progressed\ to\ a\ particular\ stage\. \ I\ created\ a\ new\ stage\ just\ for\ this\ purpose\ and\ gave\ it\ the\ sequence\ '1',\ immediately\ after\ the\ first\ stage\ 'new'\ which\ has\ the\ sequence\ '0'\. \ The\ email\ template\ worked\ fine\ when\ triggered\ in\ this\ way,\ so\ I\ don't\ know\ what\ the\ problem\ with\ the\ 'Send\ Email'\ automated\ action\ was\.

The\ 'Applicant:\ RGQ\-Acknowledgement'\ template\ set\ in\ the\ automated\ email\ field\ above\ uses\ the\ following\ placeholder\ to\ get\ the\ correct\ survey\ response_id\ for\ the\ application\. \ Thanks\ to\ @VasystOM\ Technologies\ for\ this\ tip\.

h t t p://${object.survey_id.public_url.replace('http://','')}/${object.response_id.token}

The second part of the combined automated action simply updates the record by changing the 'state' (Stage) field to 'id' '4', which is the id of the 'survey sent' stage.

That's it.  Sure does save me a lot of time and it means the applicant get's to fill out their survey straight after submitting their application, so they are less likely to forget about it.


0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Fix Automated Action Based on Time Condition, From Odoo AutoAction(Done), to Code(Not yet)
AutomatedActions
Imagine profil
Imagine profil
Imagine profil
3
nov. 25
500
Can I get the user_input_id data from survey.user_input.line when the question appears before continuing or submitting
survey
Imagine profil
Imagine profil
1
aug. 25
3340
Is there a way to prevent Employees from being able to edit Surveys (questions, pages, etc)?
survey
Imagine profil
1
aug. 25
3493
Add images to Odoo Survey Questions Rezolvat
survey
Imagine profil
Imagine profil
Imagine profil
2
iun. 25
3178
How to copy Transfer lines with an Automated Action
AutomatedActions
Imagine profil
0
sept. 24
2214
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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