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 build HTML report from scratch

Abonnieren

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

Diese Frage wurde gekennzeichnet
reportinghtmlodooV8
2 Antworten
5476 Ansichten
Avatar
Dr Obx

Guys, how to create HTML report from scratch.

Whatever I do it gives me only error messages.

Tried to use forms from other modules .... same result. Is there any manual how to achieve it ?

0
Avatar
Verwerfen
Yenthe Van Ginneken (Mainframe Monkey)

Are you asking how to create Qweb reports or how to parse HTML fields into a report or? Gives us some more details.

Avatar
Dr Obx
Autor Beste Antwort

I would like to change xml/xsl report a'm currently using to the HTML which is much simplier and easier to modify.

Currently using slightly changed report based on product_report.

It would be ok if I can add table header or for example summary at the end.

That's all i actually need. But completely don't understand xml/xsl ... so ....

how can I add table header into the existing form ?

<pre>

<lots>

<lot-line type="fields" name="id">

<title type="field" name="name"/>

<quantity type="field" name="qty_available"/>

<location type="field" name="location_id"/>

<available type="field" name="virtual_available"/>

</lot-line>

</lots>

</pre>

<pre>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:variable name="initial_bottom_pos">20.5</xsl:variable>

<xsl:variable name="initial_left_pos">2.5</xsl:variable>

<xsl:variable name="height_increment">0.5</xsl:variable>

<xsl:variable name="width_increment">1</xsl:variable>

<xsl:variable name="frame_height">8cm</xsl:variable>

<xsl:variable name="frame_width">18cm</xsl:variable>

<xsl:variable name="number_columns">1</xsl:variable>

<xsl:variable name="max_frames">20</xsl:variable>

<xsl:template match="/">

<xsl:apply-templates select="lots"/>

</xsl:template>

<xsl:template match="lots">

<document>

<template leftMargin="2.0cm" rightMargin="1.5cm" topMargin="2.0cm" bottomMargin="2.0cm" title="Address list" author="">

<pageTemplate id="all">

<pageGraphics/>

<xsl:apply-templates select="lot-line" mode="frames"/>

</pageTemplate>

</template>

<stylesheet>

<paraStyle name="nospace" fontName="Verdana" fontSize="8" spaceBefore="0" spaceAfter="0"/>

<blockTableStyle id="mytable1">

<blockBackground colorName="lightgrey" start="0,0" stop="0,0"/>

<blockBackground colorName="lightgrey" start="1,0" stop="-1,0"/>

<blockBackground colorName="lightgrey" start="2,0" stop="-1,0"/>

</blockTableStyle>

<blockTableStyle id="mytable">

<blockBackground colorName="white" start="0,0" stop="0,0"/>

<blockBackground colorName="lightgrey" start="1,0" stop="2,0"/>

<blockBackground colorName="lightblue" start="2,0" stop="3,0"/>

<blockBackground colorName="lightgreen" start="3,0" stop="4,0"/>

</blockTableStyle>

</stylesheet>

<story>

<xsl:apply-templates select="lot-line" mode="story"/>

</story>

</document>

</xsl:template>

<xsl:template match="lot-line" mode="frames">

<xsl:if test="position() &lt; $max_frames + 1">

<frame>

<xsl:attribute name="width">

<xsl:value-of select="$frame_width"/>

</xsl:attribute>

<xsl:attribute name="height">

<xsl:value-of select="$frame_height"/>

</xsl:attribute>

<xsl:attribute name="x1">

<xsl:value-of select="$initial_left_pos + ((position()-1) mod $number_columns) * $width_increment"/>

<xsl:text>cm</xsl:text>

</xsl:attribute>

<xsl:attribute name="y1">

<xsl:value-of select="$initial_bottom_pos - floor((position()-1) div $number_columns) * $height_increment"/>

<xsl:text>cm</xsl:text>

</xsl:attribute>

</frame>

</xsl:if>

</xsl:template>

<xsl:param name="pmaxChars" as="xs:integer" select="80"/>

<xsl:template match="lot-line" mode="story">

<blockTable style="mytable1" colWidths="12cm,1.5cm,1.5cm,1.5cm">

<tr>

<td>Title</td><td>Qty</td><td>Available</td><td>Location</td>

</tr>

</blockTable>

<nextFrame/>

</xsl:template>

<xsl:template match="lot-line" mode="story">

<blockTable style="mytable" colWidths="12cm,1.5cm,1.5cm,1.5cm">

<tr>

<td>

<para style="nospace"><xsl:value-of select="title" /></para>

</td>

<td>

<para style="nospace"><xsl:value-of select="location" /></para>

</td>

<td>

<para style="nospace"><xsl:value-of select="available" /></para>

</td>

<td>

<para style="nospace"><xsl:value-of select="quantity" /></para>

</td>

</tr>

<tr>

<td></td><td></td><td></td><td></td>

</tr>

</blockTable>

<nextFrame/>

</xsl:template>

</xsl:stylesheet>

</pre>

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
Odoo8 - Custom pdf name when printing
reporting odooV8
Avatar
Avatar
1
Apr. 20
4099
Qweb report prints differently on different databases
reporting html qwev
Avatar
0
Mai 21
2085
Generate report from Python by given user and data range
python reporting odooV8
Avatar
Avatar
1
Mai 20
7065
add a reporting to model on odoo v8
reporting report odooV8
Avatar
Avatar
1
Okt. 17
3531
Error when see report Timesheet Analysis
reporting timesheet odooV8
Avatar
0
Juli 16
4024
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • 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