Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Intelligence artificielle
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Addon DIN5008 invoice VATID in Information Block

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
reportsinvoicelayoutsdin5008
2 Réponses
2972 Vues
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
Ignorer
Avatar
Jörg Sünram
Auteur Meilleure réponse

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
Ignorer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Meilleure réponse

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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
German Reports prints VAT_ID on Receipient-Address? Résolu
reports invoicelayouts v17
Avatar
Avatar
Avatar
3
oct. 25
2625
Code for page number in Body of Pdf report
reports
Avatar
Avatar
Avatar
2
oct. 25
5582
How to increase the width of a column on odoo quotation PDF?
reports
Avatar
Avatar
1
oct. 25
3010
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
août 25
3611
Odoo .SH V17 how do I migrate a report from staging to production?
reports
Avatar
Avatar
1
avr. 25
4107
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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