Linux 软件免费装

CandorLight Connector for Odoo

开发者 candorlight
更新时间 2026年10月12日 16:42
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

contact form crm contacts erp odoo

下载

0.8.0 1.0.0

详情介绍:

When someone fills in a contact form on your site, this plugin writes them into your Odoo database as a contact (res.partner) and tags it with the Odoo contact tag you choose, so web enquiries are easy to find and filter. It talks to Odoo over the External JSON-2 API (POST /json/2/{model}/{method} with bearer-token authentication). It deliberately avoids the legacy XML-RPC and /jsonrpc endpoints, which Odoo has deprecated. What it does Requirements Extending it Form integrations are pluggable. Implement OdooConnector\Forms\FormIntegration and add it through the odoo_connector_form_integrations filter to support WPForms, Gravity Forms, Contact Form 7 or anything else.

安装:

  1. Upload the plugin to /wp-content/plugins/ or install it through Plugins → Add New, then activate it.
  2. In Odoo, create an API key: click your avatar → My Profile (or My Preferences) → Account Security → New API Key. Odoo requires a duration and currently caps keys at three months, so note the expiry date.
  3. In WordPress, go to Settings → Connector for Odoo. Enter your Odoo server root URL (no trailing slash, no /web or /odoo path), the database name, and the API key. Save.
  4. Press Test connection. A green result means the URL, the database and the key are all good.
  5. Under Contacts, enter the ID of the Odoo contact tag to apply. In Odoo go to Contacts → Configuration → Tags, open the tag and read the number at the end of the URL. Leave it empty for no tag.
  6. Under Field mapping, check that each Odoo field points at the field id your form actually sends. Divi lowercases its field ids and strips spaces, so a field labelled "Company name" arrives as companyname.
  7. Submit your form once and confirm the contact appears in Odoo.

升级注意事项:

0.8.0 CRM lead creation has been removed in favour of a contact tag. Set a Tag ID on the settings screen after upgrading. 0.7.0 First public release. If you ran an internal build, note that logging now defaults to off and that "Update the existing contact" no longer overwrites the contact's Notes or name.

常见问题:

Which versions of Odoo are supported?

Odoo 19 and newer. The plugin uses the External JSON-2 API, which older releases do not provide. It does not fall back to XML-RPC.

Where do I find my database name?

It is the Odoo database name, not your WordPress database. If you are unsure, run odoo.info in your browser's developer console while viewing any Odoo page.

Do I need the CRM module in Odoo?

No. Contacts and contact tags are part of every Odoo install.

How do I stop sending submissions to Odoo?

Deactivate the plugin. Your settings are kept until you delete it.

My API key stopped working after a few months.

Odoo caps API key lifetimes (currently at three months). Generate a new key and paste it into the settings screen. The stored key is never shown back to you — the field displays dots — so leaving the dots untouched keeps the existing key.

Does it work with Contact Form 7 / WPForms / Gravity Forms?

Not out of the box. Divi's contact form and the bundled [odoo_contact_form] shortcode are supported today. Other forms can be added through the odoo_connector_form_integrations filter without modifying the plugin.

Does the plugin store submissions in WordPress?

No. Submissions are passed straight through to Odoo and are not written to your WordPress database. If logging is switched on, request details are written to your PHP error log with API keys and tokens redacted — that log is the only local copy, and logging is off by default.

A submission did not reach Odoo. How do I debug it?

Turn on Logging in the settings screen and make sure WP_DEBUG_LOG is enabled in wp-config.php. Every request, response code and error is written to the log, prefixed [odoo-connector]. Failed payloads are logged in full so a lost enquiry can be re-entered by hand.

My Divi form submits but nothing happens.

Turn on Logging and submit the form once. If no et_pb_contact_form_submit fired line appears in the log, your Divi version does not fire the action this plugin listens to.

Is this an official Odoo product?

No. It is an independent integration by CandorLight LLC, not affiliated with, endorsed by or sponsored by Odoo S.A. "Odoo" is a trademark of Odoo S.A.

更新日志:

0.8.0 0.7.0 0.1.0