Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

Associate surveys with specific objects

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
surveys
3 Antworten
6194 Ansichten
Avatar
Javier Macchi

I am working with the Surveys module in Odoo v14, and it seems to be powerful enough to design different questionaires to be used in many different situations... for example to send it to clients to ask for their satisfaction about a given product or service, or to a candidate that has applied for a job to ask them detailed questions about their previous experience.

The problem I'm facing is how to associate those survey responses to the object that originated them, for example if I send the satisfaction survey to a given customer, I want to be able to see that survey response from the client record. Or if I send the previous experience survey to a candidate, I want to access it from the candidate record.

Currently I can only access the surveys from the surveys module, and have to manually search for the specific survey response I want to find, which is highly inefficient and also lacks any traceability and direct link to the original object. Has anybody faced this situation and has found a solution or workaround for this problem?

Any ideas are appreciated, thanks!

1
Avatar
Verwerfen
Avatar
Samuel Moguilner
Beste Antwort

Is it possible to implement this functionality even if the user is not logged in? If I collect email addresses through the survey, is there a method to match these emails with the corresponding contacts? Thanks in advance!

1
Avatar
Verwerfen
Avatar
XOLUTO
Beste Antwort

Answer above only covers use cases when survey is related to a user.

But in real life you want to relate survey results to products, affiliates, partners, ... 

In my case I have service tasks to assess partners, doing a supplier audit/assessment.

So you have somehow relate the survey to a particular partner and their products, which is not supported out of the box.

The approach I've implemented in odoo is outlined as follows

  • Inherit Controller to write related business object info)
  • In calling the  survey (URL-Action) pass the context (related business object info)
  • Inherited Controller process the context and add it to survey.user_input

Custom Controller

Important here: add an additional parameter, in my case task_id

The clue is to pass your context info in the additional_vals which are then evaluated and written by default to the survey.user_input.

You have to inherit of course the according to your needs.

class SurveyController(Survey):        
​@http.route('/survey/start/', type='http', auth='public', ​website=True)   
def survey_start(self, survey_token, answer_token=None, email=False, task_id=None,**post):
    ​ ​# the clue, add additional_vals, which are then written to the survey anser       
​ ​additional_vals = {} # f
​ ​if task_id:           
​ ​ ​reffering_task = request.env['project.task'].sudo().search([
​ ​ ​ ​('id', '=', task_id)], limit=1)           
​ ​ ​additional_vals = {'my_partner_id': reffering_task.partner_id.id,
​ ​ ​ 'my_standard_id': reffering_task.standard_id.id                    # rest of the controller remain unchanged
​....

Call Survey:

Survey is called by url action. you have to add your context info (in my case task_id) to be evaluated be the survey controller start (see above)

...
   self.ensure_one()       
​url = '%s?%s' % (self.get_start_url(), werkzeug.urls.url_encode(
​ ​{'answer_token': answer and answer.access_token or None,
​ ​'task_id': self.id}))  # open via URL-Action       
​return {
​ ​'type': 'ir.actions.act_url',
​​'name': "Start Survey", 
​ ​'target': 'new', 
​ ​'url': url       
​}
0
Avatar
Verwerfen
Avatar
Ray Carnes (ray)
Beste Antwort

Since the Customer is a Contact in Odoo (res.partner records) you can use Odoo Studio to create a smart button to access all responses, because the partner_id field is already on the Survey Response (if the Customer is logged in when they reply).

First, create a field on the Contact to link to the Survey Responses:



Next, use Odoo Studio to create the Smart Button:







Once you send a Survey and receive a response, you will see them from the Contact record.


0
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
Survey Visual Changes Possible?
surveys
Avatar
Avatar
Avatar
2
März 24
4241
Survey for Events, Odoo 15
surveys
Avatar
0
Sept. 23
1890
Duplicate question in surveys Gelöst
surveys
Avatar
Avatar
Avatar
2
Mai 23
2743
survey results
surveys
Avatar
Avatar
1
Dez. 20
4387
print survey Gelöst
surveys
Avatar
Avatar
Avatar
2
Okt. 20
4303
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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