Skip to main content

Odoo (search) support plugin for EDWH tooling.

Project description

EDWH Odoo Plugin

PyPI - Version PyPI - Python Version

An EDWH plugin for Odoo XMLRPC operations, providing advanced search functionality for projects, tasks, logs, and files.

Installation

This plugin is designed to work with the EDWH task runner system.

Install EDWH

First, install EDWH using pipx (recommended):

pipx install edwh

For more information about EDWH installation and usage, see the EDWH README.

Install this Plugin

# Install from PyPI (when published)
pipx inject edwh edwh-odoo-plugin

# Or install from source
pipx inject edwh .

# Or install with EDWH plugin manager
edwh plugin.add edwh-odoo-plugin

Verify Installation

edwh --help
# You should see 'odoo' in the available namespaces

edwh odoo --help
# Shows available odoo commands

Plugin Information

  • pip name: edwh-odoo-plugin
  • plugin name: edwh[odoo] (when available)
  • subcommand namespace: odoo

Tools

text_search.py - Unified Search Tool

Geavanceerde zoekfunctionaliteit voor Odoo projecten, taken, logs EN bestanden.

Zoekt door:

  • Project namen en beschrijvingen
  • Taak namen en beschrijvingen
  • Project en taak log berichten (mail.message)
  • NIEUW: Bestandsnamen en metadata
  • Met tijd-gebaseerde filtering om server overbelasting te voorkomen

Gebruik:

# Tekst zoeken (zoals voorheen)
python text_search.py "zoekterm" --since "1 week"
python text_search.py "bug fix" --since "2 dagen" --type tasks

# Bestanden zoeken (NIEUW!)
python text_search.py "report" --include-files --file-types pdf docx
python text_search.py "screenshot" --files-only --file-types png jpg
python text_search.py "document" --include-files --stats

# Bestanden downloaden (NIEUW!)
python text_search.py --download 12345 --download-path ./my_files/

# Gecombineerd zoeken
python text_search.py "client meeting" --include-files --since "1 maand"

Opties:

  • --since: Tijd referentie in Engels of Nederlands (bijv. "1 week", "3 days"/"3 dagen", "2 months"/"2 maanden")
  • --type: Wat te doorzoeken (all, projects, tasks, logs, files)
  • --include-files: NIEUW: Zoek ook in bestandsnamen
  • --files-only: NIEUW: Zoek alleen in bestanden
  • --file-types: NIEUW: Filter op bestandstypes (pdf, docx, png, etc.)
  • --download: NIEUW: Download bestand op ID
  • --download-path: NIEUW: Download directory
  • --stats: NIEUW: Toon bestandsstatistieken
  • --no-logs: Sluit log berichten uit
  • --no-descriptions: Zoek alleen in namen, niet in beschrijvingen
  • --limit: Beperk aantal resultaten
  • --export: Exporteer naar CSV bestand
  • --verbose: Toon gedetailleerde zoek informatie

search.py - File Search

Zoekt naar bestanden in projecten en onder taken, omdat die niet altijd gevonden kunnen worden via de standaard interface.

Functionaliteit:

  • Zoek alle bestanden gekoppeld aan projecten en taken
  • Filter op bestandstype (MIME type)
  • Zoek in specifieke projecten
  • Download bestanden
  • Export naar CSV
  • Uitgebreide statistieken

Gebruik:

from search import OdooProjectFileSearchFinal

zoeker = OdooProjectFileSearchFinal()
bestanden = zoeker.zoek_alle_project_bestanden()
zoeker.print_resultaten(bestanden)

Setup

  1. Installeer dependencies:
pip install openerp_proxy python-dotenv
  1. Maak .env bestand aan:
ODOO_HOST=education-warehouse.odoo.com
ODOO_DATABASE=education-warehouse
ODOO_USER=username@domain.com
ODOO_PASSWORD=jouw_api_key
  1. Run de tools:
python text_search.py "zoekterm"
python search.py

Modules

  • odoo_base.py: Gedeelde functionaliteit voor Odoo connecties
  • text_search.py: Tekst zoeken in projecten, taken en logs
  • search.py: Bestand zoeken en download functionaliteit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edwh_odoo_plugin-0.1.0.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edwh_odoo_plugin-0.1.0-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

Details for the file edwh_odoo_plugin-0.1.0.tar.gz.

File metadata

  • Download URL: edwh_odoo_plugin-0.1.0.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for edwh_odoo_plugin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d64ae707eb85c7cb51c07222eb2a97094691204a9202d0544726370a3f69c1f8
MD5 ed8e0aaaf3d88174ce70e80b55315cbc
BLAKE2b-256 876d00a1af3b405cfd7e596ae9a9988c0f96a53f856f38d6fee73fcef8aba5d6

See more details on using hashes here.

File details

Details for the file edwh_odoo_plugin-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_odoo_plugin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 956e8aef9bc7a9cad2e416bbce6421e6eb666ab13059630fe6f24bd2e86d324f
MD5 60dacfb82952a803f8ae1e48cc87614f
BLAKE2b-256 d84bf5d200f3a19acd10edd08930907c32fb990341fd8b484195dcab52bfa97b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page