edwh-odoo-plugin


Nameedwh-odoo-plugin JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryOdoo (search) support plugin for EDWH tooling.
upload_time2025-09-03 09:26:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords edwh
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # EDWH Odoo Plugin

[![PyPI - Version](https://img.shields.io/pypi/v/edwh-odoo-plugin.svg)](https://pypi.org/project/edwh-odoo-plugin)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/edwh-odoo-plugin.svg)](https://pypi.org/project/edwh-odoo-plugin)

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](https://github.com/educationwarehouse/edwh) task runner system.

### Install EDWH

First, install EDWH using pipx (recommended):

```bash
pipx install edwh
```

For more information about EDWH installation and usage, see the [EDWH README](https://github.com/educationwarehouse/edwh).

### Install this Plugin

```bash
# 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

```bash
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:**
```bash
# 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:**
```python
from search import OdooProjectFileSearchFinal

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

## Setup

1. Installeer dependencies:
```bash
pip install openerp_proxy python-dotenv
```

2. Maak `.env` bestand aan:
```
ODOO_HOST=education-warehouse.odoo.com
ODOO_DATABASE=education-warehouse
ODOO_USER=username@domain.com
ODOO_PASSWORD=jouw_api_key
```

3. Run de tools:
```bash
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


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "edwh-odoo-plugin",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "edwh",
    "author": null,
    "author_email": "Remco Boerma <remco.b@educationwarehouse.nl>, Robin van der Noord <robin.vdn@educationwarehouse.nl>",
    "download_url": "https://files.pythonhosted.org/packages/e3/4c/de696401983b87020bb4f22cac3b7c6de88ac9b42f1884343ad2297e23ad/edwh_odoo_plugin-0.2.0.tar.gz",
    "platform": null,
    "description": "# EDWH Odoo Plugin\n\n[![PyPI - Version](https://img.shields.io/pypi/v/edwh-odoo-plugin.svg)](https://pypi.org/project/edwh-odoo-plugin)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/edwh-odoo-plugin.svg)](https://pypi.org/project/edwh-odoo-plugin)\n\nAn EDWH plugin for Odoo XMLRPC operations, providing advanced search functionality for projects, tasks, logs, and files.\n\n## Installation\n\nThis plugin is designed to work with the [EDWH](https://github.com/educationwarehouse/edwh) task runner system.\n\n### Install EDWH\n\nFirst, install EDWH using pipx (recommended):\n\n```bash\npipx install edwh\n```\n\nFor more information about EDWH installation and usage, see the [EDWH README](https://github.com/educationwarehouse/edwh).\n\n### Install this Plugin\n\n```bash\n# Install from PyPI (when published)\npipx inject edwh edwh-odoo-plugin\n\n# Or install from source\npipx inject edwh .\n\n# Or install with EDWH plugin manager\nedwh plugin.add edwh-odoo-plugin\n```\n\n### Verify Installation\n\n```bash\nedwh --help\n# You should see 'odoo' in the available namespaces\n\nedwh odoo --help\n# Shows available odoo commands\n```\n\n## Plugin Information\n\n- **pip name**: `edwh-odoo-plugin`\n- **plugin name**: `edwh[odoo]` (when available)\n- **subcommand namespace**: `odoo`\n\n## Tools\n\n### `text_search.py` - Unified Search Tool\nGeavanceerde zoekfunctionaliteit voor Odoo projecten, taken, logs EN bestanden.\n\n**Zoekt door:**\n- Project namen en beschrijvingen\n- Taak namen en beschrijvingen  \n- Project en taak log berichten (mail.message)\n- **NIEUW**: Bestandsnamen en metadata\n- Met tijd-gebaseerde filtering om server overbelasting te voorkomen\n\n**Gebruik:**\n```bash\n# Tekst zoeken (zoals voorheen)\npython text_search.py \"zoekterm\" --since \"1 week\"\npython text_search.py \"bug fix\" --since \"2 dagen\" --type tasks\n\n# Bestanden zoeken (NIEUW!)\npython text_search.py \"report\" --include-files --file-types pdf docx\npython text_search.py \"screenshot\" --files-only --file-types png jpg\npython text_search.py \"document\" --include-files --stats\n\n# Bestanden downloaden (NIEUW!)\npython text_search.py --download 12345 --download-path ./my_files/\n\n# Gecombineerd zoeken\npython text_search.py \"client meeting\" --include-files --since \"1 maand\"\n```\n\n**Opties:**\n- `--since`: Tijd referentie in Engels of Nederlands (bijv. \"1 week\", \"3 days\"/\"3 dagen\", \"2 months\"/\"2 maanden\")\n- `--type`: Wat te doorzoeken (all, projects, tasks, logs, **files**)\n- `--include-files`: **NIEUW**: Zoek ook in bestandsnamen\n- `--files-only`: **NIEUW**: Zoek alleen in bestanden\n- `--file-types`: **NIEUW**: Filter op bestandstypes (pdf, docx, png, etc.)\n- `--download`: **NIEUW**: Download bestand op ID\n- `--download-path`: **NIEUW**: Download directory\n- `--stats`: **NIEUW**: Toon bestandsstatistieken\n- `--no-logs`: Sluit log berichten uit\n- `--no-descriptions`: Zoek alleen in namen, niet in beschrijvingen\n- `--limit`: Beperk aantal resultaten\n- `--export`: Exporteer naar CSV bestand\n- `--verbose`: Toon gedetailleerde zoek informatie\n\n### `search.py` - File Search\nZoekt naar bestanden in projecten en onder taken, omdat die niet altijd gevonden kunnen worden via de standaard interface.\n\n**Functionaliteit:**\n- Zoek alle bestanden gekoppeld aan projecten en taken\n- Filter op bestandstype (MIME type)\n- Zoek in specifieke projecten\n- Download bestanden\n- Export naar CSV\n- Uitgebreide statistieken\n\n**Gebruik:**\n```python\nfrom search import OdooProjectFileSearchFinal\n\nzoeker = OdooProjectFileSearchFinal()\nbestanden = zoeker.zoek_alle_project_bestanden()\nzoeker.print_resultaten(bestanden)\n```\n\n## Setup\n\n1. Installeer dependencies:\n```bash\npip install openerp_proxy python-dotenv\n```\n\n2. Maak `.env` bestand aan:\n```\nODOO_HOST=education-warehouse.odoo.com\nODOO_DATABASE=education-warehouse\nODOO_USER=username@domain.com\nODOO_PASSWORD=jouw_api_key\n```\n\n3. Run de tools:\n```bash\npython text_search.py \"zoekterm\"\npython search.py\n```\n\n## Modules\n\n- `odoo_base.py`: Gedeelde functionaliteit voor Odoo connecties\n- `text_search.py`: Tekst zoeken in projecten, taken en logs\n- `search.py`: Bestand zoeken en download functionaliteit\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Odoo (search) support plugin for EDWH tooling.",
    "version": "0.2.0",
    "project_urls": {
        "Documentation": "https://github.com/educationwarehouse/odoo#readme",
        "Issues": "https://github.com/educationwarehouse/odoo/issues",
        "Source": "https://github.com/educationwarehouse/odoo"
    },
    "split_keywords": [
        "edwh"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7376fb32aa10540c855b48850a3def61061ca7bc2864f922cdaf390b9a9da73a",
                "md5": "68c9a48ca330fca9fafb86c32a88f751",
                "sha256": "635a8b0b0914b8dc0b1dc001bddea8c128b6bd03c443a25fa4ef7809708df77d"
            },
            "downloads": -1,
            "filename": "edwh_odoo_plugin-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "68c9a48ca330fca9fafb86c32a88f751",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 53389,
            "upload_time": "2025-09-03T09:26:27",
            "upload_time_iso_8601": "2025-09-03T09:26:27.381566Z",
            "url": "https://files.pythonhosted.org/packages/73/76/fb32aa10540c855b48850a3def61061ca7bc2864f922cdaf390b9a9da73a/edwh_odoo_plugin-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e34cde696401983b87020bb4f22cac3b7c6de88ac9b42f1884343ad2297e23ad",
                "md5": "55a05af3d7f32db1cf06535ae54d4a65",
                "sha256": "a6bc28a94cd59bffe69a8e68a448d967b6854b0fffb7900966a17b86dd06d02d"
            },
            "downloads": -1,
            "filename": "edwh_odoo_plugin-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "55a05af3d7f32db1cf06535ae54d4a65",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 56198,
            "upload_time": "2025-09-03T09:26:28",
            "upload_time_iso_8601": "2025-09-03T09:26:28.466747Z",
            "url": "https://files.pythonhosted.org/packages/e3/4c/de696401983b87020bb4f22cac3b7c6de88ac9b42f1884343ad2297e23ad/edwh_odoo_plugin-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-03 09:26:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "educationwarehouse",
    "github_project": "odoo#readme",
    "github_not_found": true,
    "lcname": "edwh-odoo-plugin"
}
        
Elapsed time: 1.85393s