Odoo integration for Formie
This plugin requires Craft CMS >= 5.0 and Formie >= 3.0
You also need an account at Odoo
Odoo requires the Ripcord library, which provides a simple XML-RPC API. Ripcord requires that XML-RPC support be enabled in your PHP installation.
Since calls are performed over HTTPS, it also requires that the OpenSSL extension be enabled.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require digitalpulsebe/craft-formie-odoo -
Install the plugin.
php craft plugin/install formie-odoo
- Open the Formie settings in a local environment
- Go to 'CRM' under 'Integrations'
- Click the 'New integration' button.
- Fill in all the fields and follow instructions
- Click the 'refresh' button to check for a successful API connection
- Open the 'Forms' overview in Formie
- Select the form you need
- In the tab integrations select 'Odoo'
- Click the refresh integration button
- Choose to create a Lead from the contact. When creating a lead you need to select a Stage and Sales Team.
- Map each field carefully, be sure to configure your form fields to match the accepted content types:
- Dropdown fields must have options available in Odoo, you have to manually check them
- Name and Email are required
- Language and Company type you can select from the options or assign a value from the submission
- Other fields are mapped to the fields in Odoo, you can select from the options or assign a value from the submission
- Click the 'Save' button
- Create a test form submission
- Check if the queue handled the integration correctly
- Check you Odoor instance for a new contact and/or lead