Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dce20fa
[ADD] survey_contact_generation: New module
chienandalu Jun 1, 2023
869e7ee
[IMP] survey_contact_generation: Add test coverage
stefan-tecnativa Jun 14, 2023
040dfd5
[IMP] survey_contact_generation: pre-commit stuff
stefan-tecnativa Jun 15, 2023
f532558
[MIG] survey_contact_generation: Migration to 15.0
stefan-tecnativa Jun 15, 2023
b4bc3e5
[IMP] survey_contact_generation: multiple choice
chienandalu Jun 20, 2023
ec8f5ff
[IMP] survey_contact_generation: Improve test coverage
stefan-tecnativa Jun 22, 2023
1371bdc
[FIX] survey_contact_generation: Multiple choices text answers were
stefan-tecnativa Jun 22, 2023
8a2746b
Added translation using Weblate (Italian)
mymage Oct 27, 2023
7bbeceb
Translated using Weblate (Italian)
mymage Oct 29, 2023
29b257c
Translated using Weblate (Spanish)
Ivorra78 Nov 11, 2023
46e67e5
[IMP] survey_contact_generation: parent company
chienandalu Feb 8, 2024
dbba90b
Translated using Weblate (Italian)
mymage Feb 12, 2024
0816eed
[IMP] survey_contact_generation: link partner
chienandalu Feb 13, 2024
b2195b4
Translated using Weblate (Italian)
mymage Feb 26, 2024
cfabf72
[IMP] survey_contact_generation: partner hook method
chienandalu Mar 14, 2024
64736c4
[IMP] survey_contact_generation: email case match
chienandalu Apr 22, 2024
589e220
[IMP] survey_contact_generation: pre-commit auto fixes
pilarvargas-tecnativa Apr 7, 2025
012ed9b
[MIG] survey_contact_generation: Migration to version 17.0
pilarvargas-tecnativa Apr 7, 2025
34c6a15
[UPD] Update survey_contact_generation.pot
Apr 25, 2025
277168d
[BOT] post-merge updates
OCA-git-bot Apr 25, 2025
206cbf8
[IMP-FIX] survey_contact_generation: Set descriptive field name to av…
pilarvargas-tecnativa Nov 10, 2025
b35939e
[UPD] Update survey_contact_generation.pot
Nov 10, 2025
9915d48
[BOT] post-merge updates
OCA-git-bot Nov 10, 2025
0e8ce23
Update translation files
weblate Nov 10, 2025
cbe2664
Translated using Weblate (Italian)
mymage Nov 11, 2025
5b6e78f
[IMP] survey_contact_generation: pre-commit auto fixes
Aug 11, 2026
1e7cc49
[MIG] survey_contact_generation: Migration to 18.0
Jun 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions survey_contact_generation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
==========================
Survey contacts generation
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2e0c4714ac81aad4af2b53c4abb4a1563618e3d5a237ed7e93c48219514fd899
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsurvey-lightgray.png?logo=github
:target: https://github.com/OCA/survey/tree/18.0/survey_contact_generation
:alt: OCA/survey
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/survey-18-0/survey-18-0-survey_contact_generation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/survey&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to generate new contacts from surveys answers.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure the contact generation:

1. Go to the configured survey.
2. In the *Contact* section of the *Options* tab, set *Generate Contact*
on, if you want contacts to be generated from the answers to this
survey.
3. If you want the generated to have a parent company, set the option
*Create Parent Contact* and link the company_name field to a question
in the survey.
4. In each question associated with a future new contact, specify the
corresponding contact field. To do this, go to the 'Options' tab,
then navigate to the 'Contact' group, and select the 'Contact field'
field.

Usage
=====

if the survey is properly configured, once it is submited by an
anonomous user, a new contact is create or an existing one is linked.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/survey/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/survey/issues/new?body=module:%20survey_contact_generation%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__

- David Vidal
- Ernesto Tejeda
- Stefan Ungureanu
- Pilar Vargas

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-pilarvargas-tecnativa| image:: https://github.com/pilarvargas-tecnativa.png?size=40px
:target: https://github.com/pilarvargas-tecnativa
:alt: pilarvargas-tecnativa

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pilarvargas-tecnativa|

This module is part of the `OCA/survey <https://github.com/OCA/survey/tree/18.0/survey_contact_generation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions survey_contact_generation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions survey_contact_generation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2023 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Survey contacts generation",
"summary": "Generate new contacts from surveys",
"version": "18.0.1.0.0",
"development_status": "Beta",
"category": "Marketing/Survey",
"website": "https://github.com/OCA/survey",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["pilarvargas-tecnativa"],
"license": "AGPL-3",
"depends": ["survey"],
"data": [
"views/survey_question_views.xml",
"views/survey_survey_views.xml",
],
"demo": ["demo/survey_contact_generation_demo.xml"],
"assets": {
"web.assets_tests": [
"/survey_contact_generation/static/tests/survey_contact_generation_tour.esm.js",
],
},
}
102 changes: 102 additions & 0 deletions survey_contact_generation/demo/survey_contact_generation_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Survey-->
<record model="survey.survey" id="survey_contact_creation">
<field name="title">Contact Creation Survey</field>
<field name="access_token">80e5f1e2-1a9d-4c51-8e23-09e93f7fa2c5</field>
<field name="access_mode">public</field>
<field name="users_can_go_back" eval="True" />
<field name="generate_contact" eval="True" />
<field name="create_parent_contact" eval="True" />
</record>
<record model="survey.question" id="survey_contact_q_company_name">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">0</field>
<field name="title">Company name</field>
<field name="question_type">char_box</field>
<field name="constr_mandatory" eval="True" />
<field name="res_partner_field" ref="base.field_res_partner__company_name" />
</record>
<record model="survey.question" id="survey_contact_q0">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">0</field>
<field name="title">Name</field>
<field name="question_type">char_box</field>
<field name="constr_mandatory" eval="True" />
<field name="res_partner_field" ref="base.field_res_partner__name" />
</record>
<record model="survey.question" id="survey_contact_q1">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">1</field>
<field name="title">Email</field>
<field name="question_type">char_box</field>
<field name="res_partner_field" ref="base.field_res_partner__email" />
</record>
<record model="survey.question" id="survey_contact_q2">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">2</field>
<field name="title">Notes</field>
<field name="question_type">text_box</field>
<field name="res_partner_field" ref="base.field_res_partner__comment" />
</record>
<record model="survey.question" id="survey_contact_q3">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">3</field>
<field name="title">Color</field>
<field name="question_type">numerical_box</field>
<field name="res_partner_field" ref="base.field_res_partner__color" />
</record>
<record model="survey.question" id="survey_contact_q5">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">4</field>
<field name="title">Country</field>
<field name="question_type">simple_choice</field>
<field name="res_partner_field" ref="base.field_res_partner__country_id" />
</record>
<record model="survey.question.answer" id="survey_contact_q5_sug1">
<field name="question_id" ref="survey_contact_q5" />
<field name="sequence">1</field>
<field name="value">Spain</field>
<field name="res_partner_field_resource_ref" ref="base.es" />
</record>
<record model="survey.question.answer" id="survey_contact_q5_sug2">
<field name="question_id" ref="survey_contact_q5" />
<field name="sequence">2</field>
<field name="value">Romania</field>
<field name="res_partner_field_resource_ref" ref="base.ro" />
</record>
<record model="survey.question" id="survey_contact_q6">
<field name="survey_id" ref="survey_contact_creation" />
<field name="sequence">4</field>
<field name="title">Tags</field>
<field name="question_type">multiple_choice</field>
<field name="res_partner_field" ref="base.field_res_partner__category_id" />
</record>
<record model="survey.question.answer" id="survey_contact_q6_sug1">
<field name="question_id" ref="survey_contact_q6" />
<field name="sequence">1</field>
<field name="value">Vendor</field>
<field
name="res_partner_field_resource_ref"
ref="base.res_partner_category_0"
/>
</record>
<record model="survey.question.answer" id="survey_contact_q6_sug2">
<field name="question_id" ref="survey_contact_q6" />
<field name="sequence">2</field>
<field name="value">Prospects</field>
<field
name="res_partner_field_resource_ref"
ref="base.res_partner_category_2"
/>
</record>
<record model="survey.question.answer" id="survey_contact_q6_sug3">
<field name="question_id" ref="survey_contact_q6" />
<field name="sequence">3</field>
<field name="value">Employees</field>
<field
name="res_partner_field_resource_ref"
ref="base.res_partner_category_3"
/>
</record>
</odoo>
Loading
Loading