documentation/content/applications/sales/crm/acquire_leads/generate_from_website.rst
Antoine Vandevenne (anv) 6f125de01b [MOV] content/*: move resource files into their related page's directory
Since odoo/documentation#903, the guideline for the location of new
resource (images, downloadable files, RST includes...) files is to place
those inside the directory of the RST page that references them.

For example, if `doc1.rst` has a reference to `image.png` and to
`download.zip`, the file structure should look like this:

├── parent_doc/
│     └── doc1/
│     │     └── image.png
│     │     └── download.zip
│     └── doc1.rst
│     └── doc2.rst
├── parent_doc.rst

Before this commit, most of the resource files were still located inside
'media' directories holding all the resource files referenced by RST
pages located at the same level as these directories. In the example
above, a single 'media' directory would hold all the resource files
referenced by both `doc1.rst` and `doc2.rst`. Doing so prevented us from
figuring out easily which resource file was referenced by which RST page
and, thus, lead to unused resource files piling up in the repository. It
also made it more complicated to define codeowners regex rules because a
team could not simply be assigned to `/some_page.*` but needed to be
assigned to both `/some_page\.rst` and to the location of 'media'.

In order to help new content writers figure out the guideline when
taking examples from other RST pages, this commit retroactively applies
the guideline to existing resource files and 'media' directories. The
left-over resource files that are not referenced by any RST page are
removed.

task-2497965

closes odoo/documentation#2006

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 11:33:49 +02:00

79 lines
2.6 KiB
ReStructuredText

===========================================================
Generate leads/opportunities from your website contact page
===========================================================
Automating the lead/opportunity generation will considerably improve
your efficiency. Any visitor using the contact form on your website will
create a lead/opportunity in the pipeline.
Use the contact us on your website
==================================
You should first go to your website app.
|image0|\ |image1|
With the CRM app installed, you benefit from a ready-to-use contact form
on your Odoo website that will generate leads/opportunities
automatically.
.. image:: generate_from_website/generate_from_website03.png
:align: center
To change to a specific sales channel, go to :menuselection:`Website
--> Configuration --> Settings` under *Communication* you will find the
Contact Form info and where to change the *Sales Channel* or
*Salesperson*.
.. image:: generate_from_website/generate_from_website04.png
:align: center
Create a custom contact form
============================
You may want to know more from your visitor when they use the contact form to
you will need to build a custom contact form on your
website. These contact forms can generate multiple types of records in
the system (emails, leads/opportunities, project tasks, helpdesk
tickets, etc.)
Configuration
=============
You will need to install the free *Form Builder* module, only
available in Odoo Enterprise.
.. image:: generate_from_website/generate_from_website05.png
:align: center
Create a custom contact form
----------------------------
First, go to the page where you want to put your contact form. In edit mode, drag
the form builder onto the page, and you will be able to add all the fields
you wish.
.. image:: generate_from_website/generate_from_website06.png
:align: center
By default, any new contact form will send an email. You can switch to
lead/opportunity generation in *Change Form Parameters*.
.. note::
If the same visitor uses the contact form twice, the second
entry will be added to the first lead/opportunity in the chatter.
Generate leads instead of opportunities
=======================================
When using a contact form, you should use a qualification step
before assigning the form to the right sales people. To do so, activate *Leads*
in CRM settings and refer to :doc:`convert`.
.. |image0| image:: generate_from_website/generate_from_website01.png
:width: 1.04401in
:height: 1.16146in
.. |image1| image:: generate_from_website/generate_from_website02.png
:width: 1.43229in
:height: 1.16244in