> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/guides/odoo-purchase-to-pay-order-to-cash.md).

# Odoo purchase to pay and order to cash: see where each order waits

Connect Odoo to Duaer. It reads the steps of each purchase or sales order over JSON-RPC, so you see where orders wait and for how long.
## What does Duaer read from Odoo?

Each purchase order (purchase.order) or sales order (sale.order) is a case, with the vendor or customer, the company, currency and amount. The steps are:

- Purchase to pay: Order created, Goods received (receipts done), Invoice posted (posted vendor bills), Paid.
- Order to cash: Order created, Delivery created, Goods issued (deliveries done), Invoice created, Paid.
- Canceled documents are left out. The steps match the process templates.

## How do you connect Odoo to Duaer?

1. In Odoo, create an API key (Preferences › Account Security) for a user who can read purchase, sales, inventory and accounting.
2. If Odoo is only inside your network, or has an http:// address only, start the Duaer on-premises data gateway there first.
3. In Duaer, create an Odoo API credential with the address, the database name, the login and the API key.
4. As an owner or admin, open Data sources, select Add source, choose Odoo under Purchase to pay or Order to cash, choose the credential, select Check connection and confirm.

## How often does it read, and how much?

Each run reads orders, transfers, invoices and payments by last modification (write_date), one page each at most. Each stream reads a time window to its end, then goes on from there; a first read covers all past data. A step is never written twice. Read only.

## What are the limits?

- The tables, views, models and fields read follow the vendor's published documentation and are not yet checked against a real system; the first real read may need adjustments.
- Purchase agreements (purchase.requisition) are not read.
## Questions

### Does it work with Odoo Community?

Yes, as long as the purchase, sales, inventory and accounting apps are installed and the user can sign in with an API key.

## Related

- [Add a process source in Duaer](https://doc.duaer.com/build/process-sources.md)
- [See the process in your data and generate workflows in Duaer](https://doc.duaer.com/build/process.md)
- [Process findings and SOP conformance in Duaer](https://doc.duaer.com/build/process-findings.md)
- [NetSuite purchase to pay and order to cash: see where each order waits](https://doc.duaer.com/guides/netsuite-purchase-to-pay-order-to-cash.md)
- [SAP S/4HANA purchase to pay: see where each order waits](https://doc.duaer.com/guides/sap-s4hana-purchase-to-pay.md)

