npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@officedesk/plugin-odoo

v0.0.8

Published

Odoo integration plugin for officedesk-ai

Downloads

703

Readme

@officedesk/plugin-odoo

Odoo integration plugin for OfficeDesk AI. Supports both Odoo 19 JSON-2 and legacy XML-RPC instances, with typed wrappers for contacts, invoices, and orders.

Installation

npm install -g @officedesk/plugin-odoo

Commands

  • configure — prompts for Odoo connection settings and stores them in the profile .env file
  • login — validates Odoo connection settings non-interactively and writes them to the profile .env file
  • list-profiles — lists configured default and named profiles
  • version — reads /web/version
  • call — executes a public Odoo model method through JSON-2 or XML-RPC
  • list-contacts, get-contact, create-contact, update-contact — wrap res.partner
  • list-invoices, get-invoice — wrap account.move
  • list-orders, get-order, confirm-order — wrap sale.order

Configuration

officedesk-plugin-odoo configure

Or validate and save the connection in one step:

officedesk-plugin-odoo login --url=https://erp.example.com --api-key=secret --api-mode=json2

Credentials are written to:

  • Default profile: $OFFICEDESK_HOME/plugins/plugin-odoo/.env
  • Named profile: $OFFICEDESK_HOME/plugins/plugin-odoo/.env.<profile>

OFFICEDESK_HOME defaults to ~/.officedesk/.

| Variable | Required | Description | |---|---|---| | ODOO_URL | ✓ | Odoo host root (e.g. http://localhost:8069) | | ODOO_DATABASE | ✓ | Database name | | ODOO_API_KEY | ✓ | API key | | ODOO_USERNAME | — | Username | | ODOO_PASSWORD | — | Password | | ODOO_API_MODE | — | json2 or xmlrpc; auto-detected when omitted |

ODOO_URL should be the Odoo host root, not the API path (e.g. http://localhost:8069, not http://localhost:8069/json/2).

Named profiles are supported via --profile=<name> and write to .env.<profile>.

CLI reference

officedesk-plugin-odoo <command> [options]

version

Read the server version:

officedesk-plugin-odoo version

call

Execute a generic ORM method:

officedesk-plugin-odoo call --model=res.partner --method=search_read --json='{"domain":[["is_company","=",true]],"fields":["name","email"],"limit":10}'

Shorthand payload flags are also supported:

officedesk-plugin-odoo call --model=res.partner --method=search_read --domain='is_company = true' --fields=name,email --limit=10 --order='name asc'

Supported shorthand flags: --ids, --fields, --domain, --context, --limit, --offset, --order, --values.

For XML-RPC specific cases, use --args and --kwargs. For advanced methods, fall back to --json.

list-contacts / get-contact / create-contact / update-contact

officedesk-plugin-odoo list-contacts --company-only --limit=10
officedesk-plugin-odoo get-contact --id=42
officedesk-plugin-odoo create-contact --name='Acme Pte Ltd' --email='[email protected]' --is-company
officedesk-plugin-odoo update-contact --id=7 --email='[email protected]'

list-invoices / get-invoice

officedesk-plugin-odoo list-invoices
officedesk-plugin-odoo get-invoice --id=42

list-orders / get-order / confirm-order

officedesk-plugin-odoo list-orders --states=draft,sale --limit=10
officedesk-plugin-odoo get-order --id=77
officedesk-plugin-odoo confirm-order --id=77

list-profiles

officedesk-plugin-odoo list-profiles

Notes

  • JSON output is written to stdout only.
  • Errors and status messages are written to stderr only.
  • When ODOO_API_MODE is not set, the plugin auto-detects JSON-2 for Odoo 19+ and XML-RPC for older instances.

Environment variables

| Variable | Description | |---|---| | OFFICEDESK_HOME | Base directory for credentials and config (default: ~/.officedesk/) |

License

ISC