İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Edit invoice document (report) - Odoo16

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
invoiceinvoicesreportreportsodoo16features
3 Cevaplar
4489 Görünümler
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
Vazgeç
Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

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
Vazgeç
Avatar
Thomas
Üretici En İyi Yanıt

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
Vazgeç
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
En İyi Yanıt

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
Vazgeç
Enjoying the discussion? Don't just read, join in!

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Odoo 16. Report same report has two different faces.
invoice reports odoo16features
Avatar
Avatar
1
Ara 23
2613
Layout problem with multipage invoices Çözüldü
invoice layout report reports
Avatar
Avatar
Avatar
3
Mar 15
6488
Error when printing an Invoice
invoice error invoices report
Avatar
0
Mar 15
4336
How can i print my invoice from a server action
pdf invoice report serveraction odoo16features
Avatar
0
Mar 24
2115
Quotation report crashes when adding 2 products
report quotation reports Studio odoo16features
Avatar
0
Kas 23
1413
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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