- Implemented wiki-based template system using c_template - Template loaded from werkstatt:ausruestung:c_template - Placeholder replacement for all equipment and related fields - Fallback to hardcoded content if template unavailable - Only view pages use templates, central doku page unchanged - Added image upload capability for equipment - New field: image_1920 (Image field, max 1920x1920px) - View integration: Positioned as avatar before button_box - Upload to DokuWiki media directory during sync - Temporary file approach for dokuwiki.py library compatibility - Extended template placeholders: - status: Equipment status from status_id - odoo_link: Formatted link back to Odoo equipment form - odoo_url: Direct URL to equipment in Odoo - image: Equipment image (300px width) - image_large: Equipment image (original size) - image_id: Media path for custom DokuWiki syntax - Updated documentation with all available placeholders |
||
|---|---|---|
| .. | ||
| data | ||
| models | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| hooks.py | ||
| README.md | ||
Verfügbare Platzhalter:
Basis-Felder (maintenance.equipment):
{name} - Equipment-Name {serial_no} - Seriennummer {model} - Modell {category} - Kategoriename {status} - Status (aus status_id) {location} - Standort {ows_area} - Bereichsname {assign_date} - Zuweisungsdatum (formatiert) {cost} - Kosten {warranty_date} - Garantiedatum (formatiert) {note} - Notizen Spezial-Felder:
{view_type} - "Bereich" oder "Einsatzzweck" {view_name} - Name des Bereichs/Einsatzzwecks {wiki_doku_page} - ID der zentralen Doku-Seite {wiki_doku_link} - Fertiger Link zur zentralen Doku-Seite {odoo_link} - Fertiger Link zur Odoo Equipment-Seite {odoo_url} - URL zur Odoo Equipment-Seite (ohne Link-Markup) {sync_datetime} - Aktuelles Datum/Zeit {image} - Equipment-Bild (300px Breite) - Format: {{:media_id?300}} {image_large} - Equipment-Bild (Originalgröße) - Format: {{:media_id}} {image_id} - Media-ID des Bildes (z.B. werkstatt:ausruestung:media:sabako-laser.jpg) ows.machine Felder (falls verknüpft):
{ows_machine_id.name} - Name {ows_machine_id.model} - Modell {ows_machine_id.serial_no} - Seriennummer {ows_machine_id.location} - Standort {ows_machine_id.note} - Notizen {ows_machine_id.category} - Kategorie