Skip to content

DavidddM/odoo-ticket-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Odoo Ticket Fetcher

Read-only tool for exporting Odoo project tasks to local Markdown files.

Features

  • Exports tasks with metadata, descriptions, and attachments
  • Fetch by task ID, tags (AND/OR logic), project, or archived status
  • Converts HTML descriptions to Markdown
  • Extracts embedded base64 images from descriptions
  • Downloads task attachments via RPC
  • Config file support for credentials
  • Enforced read-only operations (method whitelist)

Requirements

  • Python 3.10+
  • Odoo 10-19 (XML-RPC deprecated in Odoo 20)
  • No external dependencies (stdlib only)

Installation

git clone https://github.com/yourusername/odoo-ticket-fetcher.git
cd odoo-ticket-fetcher

Usage

# Fetch specific tasks by ID
python odoo_ticket_fetcher.py --ids 12345 67890

# Filter by tags (AND - must have both)
python odoo_ticket_fetcher.py --tags "Bug" "qweb"

# Filter by tags (OR - must have any)
python odoo_ticket_fetcher.py --tags-any "Bug" "Feature"

# Filter by project
python odoo_ticket_fetcher.py --project "Support"

# Include archived tasks
python odoo_ticket_fetcher.py --project "Support" --include-archived

# Fetch all tasks with limit
python odoo_ticket_fetcher.py --all --limit 100

# Dry run (preview without downloading)
python odoo_ticket_fetcher.py --tags "Bug" --dry-run

Configuration

Create ~/.config/odoo_tickets.toml:

[default]
url = "https://odoo.example.com"
db = "production"
username = "[email protected]"
password = "your-password-or-api-key"

Set secure permissions:

chmod 600 ~/.config/odoo_tickets.toml

Or pass credentials via CLI args / interactive prompts.

Output Structure

odoo_tickets/
├── 12345/
│   ├── task.md
│   └── files/
│       ├── embedded_1.png
│       └── document.pdf
└── 12346/
    └── ...

License

MIT

About

Read-only CLI tool to export Odoo project tasks to Markdown with attachments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages