Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
77 changes: 77 additions & 0 deletions website_crm_quick_answer/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.. 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

=====================================
Quick answer for website contact form
=====================================

This module was written to extend the functionality of the website contact form
to support sending the interested contact an automatic welcome email and allow
you to customize it.

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

To configure this module, you need to:

* Go to *Settings > Technical > Automation > Automated actions > Quick response
to website contact form* and edit anything there.

Quicker way to just change the email template (something that most likely you
will want to do):

* Go to *Settings > Technical > Email > Templates*
* Edit the template called *Quick response to website contact form*.

Usage
=====

To use this module, you need to:

* Have an email address in your main company. It will be used as sender
address.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/186/11.0

Known issues / Roadmap
======================

* The default template is quite basic, you should change that.

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

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/website/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

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

* Rafael Blasco <rafael.blasco@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Gerhard Baumgartner <gbaumgartner@callino.at>
* Wolfgang Pichler <wpichler@callino.at>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.
Empty file.
21 changes: 21 additions & 0 deletions website_crm_quick_answer/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2016 Tecnativa - Jairo Llopis
# Copyright 2017 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Quick answer for website contact form",
"summary": "Add an automatic answer for contacts asking for info",
'category': 'Customer Relationship Management',
'version': '11.0.1.0.0',
'depends': [
'base_automation', 'website_crm',
],
'data': [
"data/automation.xml",
],
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/website',
'license': 'AGPL-3',
'installable': True,
}
52 changes: 52 additions & 0 deletions website_crm_quick_answer/data/automation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO <odoo noupdate="1"> and remove this

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


<record id="email_template" model="mail.template">
<field name="name">Quick response to website contact form</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="use_default_to" eval="True"/>
<field name="email_from">${object.company_id.email}</field>
<field name="lang">${object.env.context.get("lang")}</field>
<field name="subject">Thanks for your request</field>
<field name="body_html" type="html">
<p>
Dear
<b>${object.partner_id and object.partner_id.name or
object.contact_name}</b>,
</p>
<h3>Thanks for contacting us!</h3>
<p>
We have received your request and will answer you as soon as
possible.
</p>
<p>Please, be patient. Best regards.</p>
</field>
</record>


<record id="website_form_leads_filter" model="ir.filters">
<field name="name">Coming from the website contact form</field>
<field name="user_id" eval="False"/>
<field name="model_id">crm.lead</field>
<field name="domain"
eval="[('team_id', '=', ref('sales_team.team_sales_department')),
('medium_id', '=', ref('utm.utm_medium_website'))]"/>
</record>

<record id="server_action" model="ir.actions.server">
<field name="name">Quick response to website contact form</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="state">email</field>
<field name="template_id" ref="email_template"/>
</record>

<record id="automated_action" model="base.automation">
<field name="name">Quick response to website contact form</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="filter_id" ref="website_form_leads_filter"/>
<field name="trigger">on_create</field>
<field name="server_action_ids"
eval="[(4, ref('website_crm_quick_answer.server_action'), False)]"/>
</record>

</odoo>
51 changes: 51 additions & 0 deletions website_crm_quick_answer/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_crm_quick_answer
#
# Translators:
# Carles Antolí <carlesantoli@hotmail.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-23 10:22+0000\n"
"PO-Revision-Date: 2015-11-18 21:15+0000\n"
"Last-Translator: Carles Antolí <carlesantoli@hotmail.com>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-website-8-0/language/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: website_crm_quick_answer
#: model:email.template,body_html:website_crm_quick_answer.email_template
msgid ""
"<p>\n"
" Dear\n"
" <b>${object.partner_id and object.partner_id.name or\n"
" object.contact_name}</b>,\n"
" </p>\n"
" <h3>Thanks for contacting us!</h3>\n"
" <p>\n"
" We have received your request and will answer you as soon as\n"
" possible.\n"
" </p>\n"
" <p>Please, be patient. Best regards.</p>\n"
" "
msgstr "<p> Benvolgut <b>${object.partner_id i object.partner_id.name o object.contact_name} </b>,</p> <h3> Gràcies per posar-se en contacte amb nosaltres! </h3> <p> Hem rebut seva sol·licitud i li respondrem el més aviat possible. </ p> <p> Si us plau, sigui pacient. Salutacions cordials.</P>"

#. module: website_crm_quick_answer
#: model:ir.filters,name:website_crm_quick_answer.website_form_leads_filter
msgid "Coming from the website contact form"
msgstr "Venint des del formulari de contacte web"

#. module: website_crm_quick_answer
#: model:ir.actions.server,name:website_crm_quick_answer.server_action
msgid "Quick response to website contact form"
msgstr "Resposta ràpida al formulari de contacte web"

#. module: website_crm_quick_answer
#: model:email.template,subject:website_crm_quick_answer.email_template
msgid "Thanks for your request"
msgstr "Gràcies per la seva sol·licitud"
60 changes: 60 additions & 0 deletions website_crm_quick_answer/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_crm_quick_answer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-04 17:50+0000\n"
"PO-Revision-Date: 2018-06-04 17:50+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: website_crm_quick_answer
#: model:mail.template,body_html:website_crm_quick_answer.email_template
msgid "<p>\n"
" Dear\n"
" <b>${object.partner_id and object.partner_id.name or\n"
" object.contact_name}</b>,\n"
" </p>\n"
" <h3>Thanks for contacting us!</h3>\n"
" <p>\n"
" We have received your request and will answer you as soon as\n"
" possible.\n"
" </p>\n"
" <p>\n"
" For data protection purposes please follow the link below to verify you are the sender of the request.\n"
" </p>\n"
" <p><a href=\"${object.token_url}\">Verify your Request</a></p>\n"
" <p>Please, be patient. Best regards.</p>\n"
" "
msgstr "<p>Sehr geehrter Kunde,</p>\n"
"<p>vielen herzlichen Dank für Ihre Anfrage. </p>\n"
"<p>Es freut uns ganz besonders, dass Sie sich für unser Haus und Produkte interessieren.</p>\n"
"<p>DSGVO | GDPR konforme Kundenkommunikation ist uns sehr wichtig.</p>\n"
"<p>Bitte bestätigen Sie mit folgendeM Link, das die Anfrage von Ihnen gekommen ist.</p>\n"
"<p><a href=\"${object.token_url}\">Bestätigung der Anfrage</a></p>\n"
"<p>Wir freuen uns anschließend von Ihnen zu hören.</p>"

#. module: website_crm_quick_answer
#: model:ir.filters,name:website_crm_quick_answer.website_form_leads_filter
msgid "Coming from the website contact form"
msgstr "Vom Webseiten-Kontaktformular stammend"

#. module: website_crm_quick_answer
#: model:base.automation,name:website_crm_quick_answer.automated_action
#: model:ir.actions.server,name:website_crm_quick_answer.automated_action_ir_actions_server
#: model:ir.actions.server,name:website_crm_quick_answer.server_action
msgid "Quick response to website contact form"
msgstr "Schnelle Reaktion auf das Webseiten-Kontaktformular"

#. module: website_crm_quick_answer
#: model:mail.template,subject:website_crm_quick_answer.email_template
msgid "Thanks for your request"
msgstr "Danke für Ihre Anfrage"

51 changes: 51 additions & 0 deletions website_crm_quick_answer/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_crm_quick_answer
#
# Translators:
# Goutoudis Kostas <goutoudis@gmail.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-28 02:04+0000\n"
"PO-Revision-Date: 2015-11-24 15:35+0000\n"
"Last-Translator: Goutoudis Kostas <goutoudis@gmail.com>\n"
"Language-Team: Greek (Greece) (http://www.transifex.com/oca/OCA-website-8-0/language/el_GR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: el_GR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: website_crm_quick_answer
#: model:email.template,body_html:website_crm_quick_answer.email_template
msgid ""
"<p>\n"
" Dear\n"
" <b>${object.partner_id and object.partner_id.name or\n"
" object.contact_name}</b>,\n"
" </p>\n"
" <h3>Thanks for contacting us!</h3>\n"
" <p>\n"
" We have received your request and will answer you as soon as\n"
" possible.\n"
" </p>\n"
" <p>Please, be patient. Best regards.</p>\n"
" "
msgstr ""

#. module: website_crm_quick_answer
#: model:ir.filters,name:website_crm_quick_answer.website_form_leads_filter
msgid "Coming from the website contact form"
msgstr ""

#. module: website_crm_quick_answer
#: model:ir.actions.server,name:website_crm_quick_answer.server_action
msgid "Quick response to website contact form"
msgstr ""

#. module: website_crm_quick_answer
#: model:email.template,subject:website_crm_quick_answer.email_template
msgid "Thanks for your request"
msgstr "Σας ευχαριστούμε για το αίτημά σας"
62 changes: 62 additions & 0 deletions website_crm_quick_answer/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_crm_quick_answer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-22 18:27+0000\n"
"PO-Revision-Date: 2017-06-22 20:31+0200\n"
"Last-Translator: David <david.vidal@tecnativa.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"X-Generator: Poedit 1.8.7.1\n"

#. module: website_crm_quick_answer
#: model:ir.actions.server,body_html:website_crm_quick_answer.server_action
#: model:mail.template,body_html:website_crm_quick_answer.email_template_quick_response
msgid ""
"<p>\n"
" Dear\n"
" <b>${object.partner_id and object.partner_id.name or\n"
" object.contact_name}</b>,\n"
" </p>\n"
" <h3>Thanks for contacting us!</h3>\n"
" <p>\n"
" We have received your request and will answer you as soon as\n"
" possible.\n"
" </p>\n"
" <p>Please, be patient. Best regards.</p>\n"
" "
msgstr ""
"<p>\n"
" Estimado/a\n"
" <b>${object.partner_id and object.partner_id.name or\n"
" object.contact_name}</b>,\n"
" </p>\n"
" <h3>¡Gracias por contactarnos!</h3>\n"
" <p>\n"
" Hemos recibido su solicitud y será contestada a la mayor brevedad posible.\n"
" </p>\n"
" <p>Por favor, sea paciente. Un cordial saludo.</p>"

#. module: website_crm_quick_answer
#: model:ir.filters,name:website_crm_quick_answer.website_form_leads_filter
msgid "Coming from the website contact form"
msgstr "Procedentes del formulario de contacto del sitio web"

#. module: website_crm_quick_answer
#: model:ir.actions.server,name:website_crm_quick_answer.server_action
msgid "Quick response to website contact form"
msgstr "Respuesta rápida al formulario de contacto del sitio web"

#. module: website_crm_quick_answer
#: model:ir.actions.server,subject:website_crm_quick_answer.server_action
#: model:mail.template,subject:website_crm_quick_answer.email_template_quick_response
msgid "Thanks for your request"
msgstr "Gracias por su consulta"
Loading