Foodics Connector
Import Foodics taxes, products, customers and closed orders into Odoo sales, with a tax map, totals checked to the cent and incremental syncs.
What it does
Brings a Foodics business into Odoo: taxes go to a Tax Map that points at your own Odoo sale taxes (never created), products and customers are matched by their Foodics id, and each closed order becomes a confirmed sale order with its products, modifier options, combos, charges, discounts and rounding.
Every order is rebuilt with Foodics' documented calculation formulas and kept only when its untaxed amount, VAT and total match Foodics to the cent; anything else is skipped with both amounts in the history, never imported wrong. Syncs run every 15 minutes; webhooks can speed them up.
Demo video
The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube
Features
| Feature | What it does |
|---|---|
| Tax Map | Each Foodics tax maps to an existing Odoo sale tax; the one tax with the same rate is proposed. An order with an unmapped tax waits; no tax is ever created. |
| Orders checked to the cent | Products, modifier options, combos, charges, product and order discounts and rounding rebuilt from Foodics' formulas; untaxed amount, VAT and total must match. |
| Products and customers | Matched by their Foodics id; only changes are written again. |
| Returns | A returned order is noted on its original sale order; declined, void and joined orders are not imported. |
| Incremental | Orders are read after the last one imported, in reference order; an order still open holds the cursor until it closes, so none is missed. |
| Webhooks as a hint | Foodics documents no webhook signature, so a webhook only queues the order id: every order is read again from the API. |
| Security | Read-only; the client secret and the token are visible to administrators only and never logged; only the Foodics API is called, at most 90 requests a minute. |
Setup
- Foodics developer console: create an app with the scopes general.read, orders.list and tokens.limited.revoke, and set its redirect URL to the one shown in Odoo.
- Odoo: Settings > Foodics. Choose production or sandbox, enter the client id and secret and click Connect to Foodics; the business owner approves the app in the Foodics console.
- Click Sync Now once, then map each Foodics tax to an Odoo sale tax in the Tax Map.
- Click Sync Now again (or activate the scheduled action): closed orders arrive as confirmed sale orders. Optionally paste the webhook URL into your Foodics app.
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: Sales, Invoicing
- Python requests on the Odoo server
What it does not do
- Writing to Foodics (menus, prices, orders).
- Inventory (Foodics stock is ingredient-level), purchasing, invoices and payments as accounting entries.
- Multi-currency: the Foodics business currency must be the company currency.
- Several Foodics businesses in one database.
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 44 | |
| 18 | 44 | |
| 19 | 44 | |
| 20 | 44 |
The tests ship with the module source, so you can run them on your own server.
Questions
Do I need a Foodics app?
Yes: create one in the Foodics developer console (client id and secret, redirect URL from the Odoo settings). The business owner then approves it once.
What if an order total differs?
It is not imported. The history shows the Odoo and Foodics amounts, so you can fix the Tax Map and read the orders again.
Are taxes created?
Never. Each Foodics tax is mapped to one of your Odoo sale taxes; orders with an unmapped tax wait until it is mapped.
What do webhooks add?
Speed only: an order id from a webhook is queued and the order is read again from the Foodics API, because Foodics documents no webhook signature.
Selling in Saudi Arabia?
The ZATCA readiness review checks your Odoo setup against ZATCA Phase 2 e-invoicing for SAR 4,500, credited to the integration project.