Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

German Reports prints VAT_ID on Receipient-Address?

Subscribe

Get notified when there's activity on this post

This question has been flagged
reportsinvoicelayoutsv17
3 Replies
2600 Views
Avatar
Jörg Sünram

Hi, 

maybe someone can help me out here.

We use ODOO 17 and when a contact has VAT-Number entered, it is printed on the Invoice.

We already found, where to "hide" that. However I am unable to print it in another location.

I simply do not now how.


So we removed/commented in "report-invoice-document", which dies work. But I am unable to get it printed anywhere else. We want it printed where the list for Date, Source and Ref is displayed... but how?


Maybe anyone can help me here?


Thank you in advance!


            
               
               
               

                   
                       

                           
                               

                                    Shipping Address:
                                   

                               

                           
                       

                       

                           
                               

                               

                               
                               

                           
                       

                   
                   
                       

                           
                               

                               

                                   
                               

                           
                       

                   
                   
                       

                           
                               

                               

                                   
                               

                           
                       

                   
               

               



0
Avatar
Discard
Avatar
Thibault Paillon
Best Answer

Hey Jörg, I'm running into the same kind of issues for a german report, also using DIN5008 for this. How did you end up hiding the VAT from the information block in the first place? I tried a lot of xpaths and workarounds and that didn't work... Your help would be greatly appreciated!
As for how to place it elsewhere, I did it by overriding the _compute_l10n_din5008_template_data method on account_move and added the VAT field in there!

EDIT : Ended up replacing the whole block from external_layout_din5008 like so (and just left out the VAT part) :
<xpath expr="//div[hasclass('address')]" position="replace">

I just needed to also add the phone back as it was added with the VAT infos so I put it back in the fallback like so :
<t t-out="o.partner_id.phone"/>

Hope it helps someone else at some point :)

0
Avatar
Discard
Avatar
Jörg Sünram
Author Best Answer

Thank you for you response.

Can you point me a bit more in the right direction, where to place/create this?

Update: I guess all is right but we use the DIN5008 template, and it looks like this needs some "special" handling to add another field. Maybe someone can point me in the right direction where to change this?

Regards

0
Avatar
Discard
Avatar
Sahil Patel
Best Answer

Hello


Please use this code ,


<template id="report_custom_invoice_document" inherit_id="account.report_invoice_document">

            <xpath expr="//div[@id='informations']" position="inside">

                <div t-attf-class="#{'col-auto col-3 mw-100' if report_type != 'html' else 'col'} mb-2" t-if="o.partner_id.vat" name="vat">

                    <strong>Vat:</strong><br/>

                    <span t-field="o.partner_id.vat"/>

                </div>

            </xpath>

        </template>



Thankyou.

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

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

Sign up
Related Posts Replies Views Activity
How to see cash in/out on PoS reports on v17? Solved
pos reports v17
Avatar
Avatar
2
Jul 25
3231
Reports: html to combine text strings (and generate barcode from it)
reports html v17
Avatar
0
Jan 25
2501
PDF Report Edits: Item Line spacing
reports PDF v17
Avatar
Avatar
1
May 24
3878
Customer Details on the left Solved
invoice reports v17
Avatar
Avatar
2
Apr 24
3676
Addon DIN5008 invoice VATID in Information Block
reports invoicelayouts din5008
Avatar
Avatar
2
Feb 24
2910
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 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