Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

How to embed pictures in static pages?

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
knowledgev7page
4 Antworten
22164 Ansichten
Avatar
Arnis

Is the way to show pictures from OpenERP database in static web pages of (Knowledge Management, module document_page)? As well as in static page refer and "directly" open attached PDF files?

8
Avatar
Verwerfen
Avatar
Devvyn Murphy
Beste Antwort

I don't think there are many user friendly ways to upload and serve arbitrary images for linking/embedding in a Document Page entry. Here are two methods that have worked for me:

WYSIWYG editor in raw HTML mode

Based on examples from the OpenERP demo data in the Document Pages module, you will need to edit the HTML code of your document page in the editor to type img tags rather than using the WYSIWYG editor features alone.

External image service

You can specify an external URL to a photo sharing site, local HTTP file server, or Amazon S3 Bucket, etc., as in <img src="http://example.com/image.png">

Base 64 encoded data URLs

Paste a lengthy <img src="data:image/png;base64,iVBORw0KGgoAAAA…PAAAAABJRU5ErkJggg=="> tag generated by base-64 encoding your image. CSS rules can also add background images from base 64 data. There are external online tools to generate the img tags and CSS rules.

Make your own quick OpenERP add-on

If you really get sick of embedded data URLs and external hosting, you can drop a folder of contents onto the server bundled as an "add-on" and have everything in the "/<addon name="">/static" path be served up. It's very easy and requires no programming knowledge, but does require write access to the file system and the ability to tell OpenERP where your extra add-on is located (that aspect is document well elsewhere).

Add-on folder structure:

my_files/
├── __init__.py
├── __openerp__.py
└── static
    └── example.png

__init__.py is empty:


__openerp__.py contains:

{
    "name": "My Static Files",
    "version": "1.0",
    "description": "Static file collection bundled as an add-on.",
    "author": "Arnis",
    "depends": ['web'],
    "installable": True,
    "auto_install": False
}
    • If you want to point OpenERP at an additional addons folder, edit your server config file (and restart) or change the command-line switch, --addons-path to point at the extra add-ons folder where your add-on's folder is contained
    • If you dropped your add-on folder into an existing add-ons folder, click Settings / Update Modules List
  1. Locate and install your add-on from the Settings menu
    UPDATE: It seems installation is not necessary, at least in the trunk I tested with today (8.0).
  2. Your add-on and the URLs should activate. You should be able to view an image in the browser with a URL like http(s)://openerp.example.com/my_files/static/example.png and img tags should likewise work as expected.
4
Avatar
Verwerfen
Avatar
Luc Demierre
Beste Antwort

You can replace the default editor to CKEditor (much more complete than default CLEditor) by installing the following module and changing the widget attribute to "ckeditor" instead "html" in the concerned view.

github.com/0k/web_ckeditor

Then you'll have to add the "base64images" module to the CKEditor source in static folder of web_ckeditor module (/addons/web_ckeditor/static/lib/js/ckeditor). This modules allows you to upload an image and integrate it diretly in base64 format so you don't have to host it somewhere else.

github.com/nmmf/base64image/

2
Avatar
Verwerfen
Tobias Frankl

I like this solution, but it does not work on v8. At least I tried and after installing the module and changing the html -> ckeditor there was no more editor in the view. It was just a textbox without any buttons.

Avatar
Daniel Santos
Beste Antwort

Hi Arnis,

I tried some ways and the finally decided to regist on photobucket.com to keep my images online. There you have a link html to use on your knowledge page,

Rgds

0
Avatar
Verwerfen
Avatar
Anoop P (BroadTech IT Solutions)
Beste Antwort

Hi Please install "Document Page" and check some sample pages inside knowledge menue

0
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
Folder per resource and attachments
knowledge v7
Avatar
Avatar
Avatar
2
Apr. 21
7845
How to call a function from "page" in Knowledge Management
knowledge v7
Avatar
0
März 15
4136
How can I print knowledge pages?
knowledge v7 print
Avatar
Avatar
1
Mai 23
5062
Show Tree view inside a Note book page Gelöst
view v7 page notebook
Avatar
Avatar
2
Apr. 20
27657
How to define the breadcrumbs path?
document v7 page breadcrumb
Avatar
Avatar
1
Mai 17
9906
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Ausbildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now