Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

How to add image into report

Naroči se

Get notified when there's activity on this post

This question has been flagged
formcustomreportingodooV8
4330 Prikazi
Avatar
Dr Obx

Guys, I would like to add image to the report but  I have no clue how to do it .....

<?xml version="1.0" encoding="ISO-8859-1"?>

<lots>

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

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

<image height="40.0" width="40.0">[[iprodstep_log.image]]</image> #My image

</lot-line>

</lots>

xsl:

<?xml version="1.0" encoding="utf-8"?>

<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">11.8</xsl:variable>

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

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

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

<xsl:variable name="frame_height">101mm</xsl:variable>

<xsl:variable name="frame_width">101mm</xsl:variable>

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

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

<xsl:template match="/">

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

</xsl:template>

<xsl:template match="lots">

<document>

<template leftMargin="2.0cm" rightMargin="2.0cm" 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="Courier" fontSize="10" spaceBefore="0" spaceAfter="0"/>

<blockTableStyle id="mytable">

<!--<blockBackground colorName="lightred" start="0,0" stop="0,0"/>-->

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

<blockAlignment value="CENTER"/>

<blockValign value="MIDDLE"/>

<blockFont name="Helvetica-BoldOblique" size="14" start="0,0" stop="-1,0"/>

<blockFont name="Helvetica" size="8" start="0,1" stop="-1,1"/>

<lineStyle kind="GRID" colorName="black" tickness="1"/>

</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="mytable" colWidths="10cm">

<tr>

<td>

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

</td>

</tr>

<tr>

<td>

<xsl:value-of select="image" />

</td>

</tr>

</blockTable>

<nextFrame/>

</xsl:template>

</xsl:stylesheet>

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
How to fix form header as static ??
form odooV8
Avatar
Avatar
1
jan. 22
4533
Odoo8 - Custom pdf name when printing
reporting odooV8
Avatar
Avatar
1
apr. 20
4040
How to print data in a pre-printed form?
form reporting
Avatar
Avatar
1
avg. 16
7563
Generate report from Python by given user and data range
python reporting odooV8
Avatar
Avatar
1
maj 20
7009
add a reporting to model on odoo v8
reporting report odooV8
Avatar
Avatar
1
okt. 17
3495
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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