Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Edit invoice document (report) - Odoo16

Subscriure's

Get notified when there's activity on this post

This question has been flagged
invoiceinvoicesreportreportsodoo16features
3 Respostes
4516 Vistes
Avatar
Thomas

Hello, I need help and I have a question about invoice editing (report) : 

So basically as you may know via the settings in Odoo, we can choose and web external layout for all documents (light - striped - bold - boxed), so I use the striped that uses the "web.external_layout_striped" view for all reports pdf (purchase order, invoice document...)

But I want to apply modifications on the "web.external_layout_striped" that are only visible for invoice documents, how can I do that by inheriting in XML the view  "web.external_layout_striped" ? Maybe with a specific "IF" statement?

Example : If I inherit the "web.external_layout_striped" view and add a div on it, the div will appear on all documents, I don't want that, I want the div to only be visible for invoice documents.

Thanks ! 

0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

To make any customization in the report layout striped you can inherit the template "web.external_layout_striped" and if you want to add the customization only for the invoice module please try with adding a condition "t-if="o._name == 'account.move'""


example


<template id="inherit_external_layout_striped"
inherit_id="web.external_layout_striped">

             <div t-if=o._name == 'account.move'>

         

            # Your custom code

              

            </div>
<xpath expr="//t[@t-call='web.external_layout_striped']" position="replace">

        </xpath>

</template>


Hope it helps

0
Avatar
Descartar
Avatar
Thomas
Autor Best Answer

Hello Jort, first thanks for your answer, 

Can't i do that by inheriting the web.external_layout_striped view? I prefer to use this model for all reports (especially the grids), because as I understand your post on your blog, we create another custom layout, is it not possible to inherit an existant layout? 

Sincerly yours

0
Avatar
Descartar
Jort de Vreeze

The web.external_layout_striped view layout uses the attribute t-att-data-oe-model="o and o._name", e.g., <span t-field="o.name"/>. So you could try to use (e.g., t-if) specific invoice related items using o.item. But this really depends on your use case.

Avatar
Jort de Vreeze
Best Answer

The items displayed on the invoice are specified in the report_invoice_document​ template from the account module: https://github.com/odoo/odoo/blob/16.0/addons/account/views/report_invoice.xml. So you would need to extend this template to add your modifications. See this post: https://www.odoo.com/forum/help-1/add-bank-account-number-under-company-details-of-a-invoice-odoo-16-community-edition-236599#answer-236603

I hope this helps!

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Odoo 16. Report same report has two different faces.
invoice reports odoo16features
Avatar
Avatar
1
de des. 23
2627
Layout problem with multipage invoices Solved
invoice layout report reports
Avatar
Avatar
Avatar
3
de març 15
6506
Error when printing an Invoice
invoice error invoices report
Avatar
0
de març 15
4345
How can i print my invoice from a server action
pdf invoice report serveraction odoo16features
Avatar
0
de març 24
2128
Quotation report crashes when adding 2 products
report quotation reports Studio odoo16features
Avatar
0
de nov. 23
1418
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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