Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Addon DIN5008 invoice VATID in Information Block

Odebírat

Get notified when there's activity on this post

This question has been flagged
reportsinvoicelayoutsdin5008
2 Odpovědi
1859 Zobrazení
Avatar
Jörg Sünram

Hi,

we want to customize invoice layout while using DIN5008 report layou addon.

We want do display partner VATID on the right side in the information block instead of the adress-zone. Can anyone help where to change this. The default reports do not honor this settings, so it look like it is in one of the files in addon-dir?


"l10n_din5008.external_layout_din5008"

0
Avatar
Zrušit
Avatar
Jörg Sünram
Autor Nejlepší odpověď

Thanks for your reply. I get the whole idea. However, when I try to save your example I get something like "block not found" in inherited view?


Element „

“ kann nicht in der übergeordneten Ansicht lokalisiert werden
0
Avatar
Zrušit
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Nejlepší odpověď

Hi,

To make customization you need to inherit the current  "external_layout_din5008" template and add the VAT information inside the information div

example:

<template id="inherit_external_layout_din5008"

inherit_id="l10n_din5008.external_layout_din5008">

<xpath expr="//div[hasclass('information_block')]"

               position="replace">

                                <div class="information_block"

                                     style="margin-bottom: -5mm; margin-left: 5mm;">

<t t-if="'l10n_din5008_template_data' in company"

                                       t-set="template_data"

t-value="company.l10n_din5008_template_data"/>

                                    <t t-if="o and 'l10n_din5008_template_data' in o"

                                       t-set="template_data"

t-value="o.l10n_din5008_template_data"/>

                                    <table>

                                        <t t-foreach="template_data"

                                           t-as="row">

                                            <tr>

                                                <td>

                                                    <t t-out="row[0]"/>

                                                </td>

                                                <td>

                                                    <t t-out="row[1]"/>

                                                </td>

                                            </tr>

                                        </t>

                                        <t t-if="delivery_det">

                                            <tr t-if="delivery_det.origin">

                                                <td t-if="delivery_det.origin"

                                                    name="div_origin">

                                                    <strong>Order:</strong>

                                                </td>

                                                <td>

<span t-field="delivery_det.origin"/>

                                                </td>

                                            </tr>

                                            <tr name="div_sched_date">

                                                <td t-if="o.state"

                                                    class="col-auto"

                                                    name="div_sched_date">

                                                    <strong>Shipping Date:

                                                    </strong>

                                                </td>

                                                <td>

                                                    <span t-if="delivery_det.state == 'done'"

t-esc="delivery_det.date_done.date().strftime('%d/%m/%Y')"/>

                                                    <span t-else=""

t-esc="delivery_det.scheduled_date.date().strftime('%d/%m/%Y')"/>

                                                </td>

                                            </tr>

<tr t-if="delivery_det.sale_id.user_id">

                                                <td>

                                                    <strong>Sales Person

                                                    </strong>

                                                </td>

                                                <td>

<span t-esc="http://delivery_det.sale_id.user_id.name" target="_blank">delivery_det.sale_id.user_id.name"/>

                                                </td>


                                            </tr>

                                        </t>

                                        <tr t-if="company.vat">

                                            <td >

                                                VAT No.

                                            </td>

                                            <td>

                                                <t t-out="company.vat"/>

                                            </td>

                                        </tr>

                                        <tr t-if="payment_term">

                                            <td>

                                                Payment Terms

                                            </td>

                                            <td>

                                                <t t-esc='payment_term'/>

                                            </td>

                                        </tr>

                                    </table>

                                </div>

        </xpath>

    </template>



The above is just an example of inheriting the layout template and replacing the information block div to add the company VAT inside it.

-- 

   

       


   


Hope it helps

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
German Reports prints VAT_ID on Receipient-Address? Vyřešeno
reports invoicelayouts v17
Avatar
Avatar
Avatar
3
říj 25
1699
Code for page number in Body of Pdf report
reports
Avatar
Avatar
Avatar
2
říj 25
3063
How to increase the width of a column on odoo quotation PDF?
reports
Avatar
Avatar
1
říj 25
874
Odoo Online (SaaS 18.4 Enterprise) – How to modify invoice report header without affecting other reports but keep default table content
reports
Avatar
Avatar
1
srp 25
1524
Odoo .SH V17 how do I migrate a report from staging to production?
reports
Avatar
Avatar
1
dub 25
2279
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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