← Catalog

pi-odoo-tools

Native Odoo ERP development and operations extension for Pi Coding Agent: XML-RPC query, automated timesheet logging, fast XML ID finder, and remote module deployer.

Package

Install

Install with PiG

pig install npm:pi-odoo-tools

Install with Pi

pi install npm:pi-odoo-tools
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/odoo-tools.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.0.0 (README.md). PiG does not review it.

pi-odoo-tools ⚡

Pi Package Odoo Support License: MIT TypeScript Python

Native Pi Coding Agent extension for comprehensive Odoo ERP development, inspection, timesheet logging, and remote container deployment.

Replaces heavy MCP server daemons with a lightweight, high-performance in-process bridge that combines TypeScript native tools with a headless Python XML-RPC & Docker CLI execution runner.


🚀 Key Features

  • ⚡ Zero-Daemon Native Bridge: Executes Odoo XML-RPC and server operations instantly without persistent background MCP daemons or memory overhead.
  • 🔍 Instant XML ID & View Finder: Locates record IDs, view definitions (form, list, kanban), inherit_id references, and actions across local addons in milliseconds using ripgrep.
  • ⏱️ Two-Phase Timesheet Sync: Strict preview-before-commit workflow (preview_timesheet ➔ user approval ➔ sync_timesheet) with automatic engineer profile attribution when authenticating as admin.
  • 🛡️ Built-in Credential Sanitization: Automatically masks sensitive fields (password, secret, apikey, token, otp, privatekey) in all search_read responses.
  • 📦 End-to-End Remote Deployment: One-command module deployment: (1) remote SSH git pull, (2) container/service restart, (3) XML-RPC module upgrade, and (4) HTTP health check verification.
  • 🛡️ Docker CLI Upgrade Fallback: Survives Odoo 500 errors, missing database columns, and dependency deadlocks using isolated CLI upgrade (odoo -u <module> --stop-after-init --no-http).

📦 Installation

Add this package to your Pi Coding Agent environment with a single command:

pi install git:github.com/JulioCaesarRBG/pi-odoo-tools

Or try it temporarily in a single session:

pi -e git:github.com/JulioCaesarRBG/pi-odoo-tools

⚙️ Configuration

Copy .env.example to create target environment files for your Odoo instances (e.g. .env_admin_demo, .env_admin, .env_admin_payroll):

cp .env.example .env_admin

Configuration Variables

VariableDescriptionExample
ODOO_ADMIN_URL / ODOO_URLOdoo base URLhttps://odoo.example.com
ODOO_ADMIN_DB / ODOO_DBDatabase nameodoo_prod
ODOO_ADMIN_USER / ODOO_USERLogin email or usernameadmin
ODOO_ADMIN_SECRET / ODOO_SECRETAPI Key or passwordyour_secret_key
ODOO_TIMESHEET_USER_EMAILTarget user email for timesheet attributionengineer@example.com
ODOO_TIMESHEET_USER_NAMETarget user name for timesheet attributionJane Doe
ODOO_SSH_HOSTHost IP for remote deployment192.168.1.50
ODOO_SSH_USERSSH username on hostubuntu
ODOO_SSH_PASSSSH password on hostyour_ssh_pass
ODOO_ADDONS_PATHServer addons path/home/ubuntu/odoo/addons
ODOO_HEALTH_URLHealth check endpointhttps://odoo.example.com/web/health
ODOO_CONTAINERDocker container name (Compose)odoo18
ODOO_SWARM_SERVICEDocker Swarm service name (Swarm)odoo_service

🛠️ Tools Reference

ToolPurposeSafe / Read-Only
odoo_find_xmlidSearches XML IDs, views, models, and inherit targets across addons✅ Yes
odoo_fieldsInspects ORM schema, field types, labels, and relations via fields_get✅ Yes
odoo_search_readQueries records from specified model with domain filtering & credential masking✅ Yes
odoo_search_countReturns total record count matching an Odoo domain filter✅ Yes
odoo_list_projectsLists projects and IDs available for task or timesheet logging✅ Yes
odoo_preview_timesheetValidates project allocations and hours without database writes✅ Yes
odoo_sync_timesheetCommits approved timesheet entries (requires user_confirmed: true)⚠️ Write
odoo_upgrade_moduleTriggers immediate module upgrade via XML-RPC⚠️ Write
odoo_deploy_moduleFull deployment: SSH git pull + restart + DB upgrade + health check⚠️ Write
odoo_cli_upgradeDirect container CLI upgrade with --stop-after-init --no-http⚠️ Write

🔒 Security & Privacy

  • Zero Hardcoded Secrets: All authentication tokens, passwords, and private network addresses are loaded exclusively from local environment files.
  • Sensitive Record Redaction: Automatically scrubs authentication tokens, passwords, and API keys before returning query results to the LLM.
  • Approval Gates: Destructive operations and production deployments strictly require explicit confirmation (user_confirmed: true).

📄 License

MIT License © 2026 Julio Caesar Ray Bakar Gani. Contributions and pull requests are welcome!