Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

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

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
surveyAutomatedActions#recruitment#V11
1 Beantwoorden
2523 Weergaven
Avatar
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
Avatar
Annuleer
Avatar
Bill Ennals
Auteur Beste antwoord

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
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Fix Automated Action Based on Time Condition, From Odoo AutoAction(Done), to Code(Not yet)
AutomatedActions
Avatar
Avatar
Avatar
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
Avatar
Avatar
1
aug. 25
3338
Is there a way to prevent Employees from being able to edit Surveys (questions, pages, etc)?
survey
Avatar
1
aug. 25
3493
Add images to Odoo Survey Questions Opgelost
survey
Avatar
Avatar
Avatar
2
jun. 25
3178
How to copy Transfer lines with an Automated Action
AutomatedActions
Avatar
0
sep. 24
2213
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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