Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Hide the parent Company from quotation & invoicing report

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
2 Replies
9086 Tampilan
Avatar
Ahmed Aljeshi

Hello, 


is there a way to modify the quotation and invoicing to hide the parent company?

default view: "Parent Company, Customer Name"

I need it to be something similar to this:  " Customer Name" 

                                                                          " Parent company, shipping address" 


is there a way to do it? 


Thanks.

0
Avatar
Buang
Ahmed Aljeshi
Penulis

Forgot to mention , I need this modification for the PDF report, the model it self I have no problem, with the design

Avatar
Ray Carnes (ray)
Jawaban Terbai

This should get you far enough along to make it work.

sale.report_saleorder_document is the report you want to inherit and override for changing the way the Customer (Partner) is shown.


The QWEB directive that prints the Customer information is:

<div t-field="doc.partner_id" 
t-options="{'widget': 'contact', 'fields': ['address', 'name'], 'no_marker': True}"/>


By default Odoo will show Company, Customer with the address - that's how the template for the widget is defined.

There are two changes you will need to make:

1. Remove the name field from the fields key.  This shows the address WITHOUT the name.

<div t-field="doc.partner_id" 
t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': True}"/>

2. Show the specific name(s) of the Customer.

<div t-field="doc.partner_id.name"/>
<div><span t-field="doc.partner_id.company_name"/>:</div/>

For a final result of:

<div t-field="doc.partner_id.name"/>
<div><span t-field="doc.partner_id.company_name"/>:
<span t-field="doc.partner_id"
t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': True}"/>


Note that the quote characters have to be escaped - you will see this in the original Odoo XML, with the original QWEB snippet looking like this:

<span t-field="doc.partner_id" 
t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: True}"/>


Your finished report would then look like this:



4
Avatar
Buang
Yenthe Van Ginneken (Mainframe Monkey)

Great answer Ray!

Ahmed Aljeshi
Penulis

Thanks Ray for you detailed answer, I followed your instructions,

as below

[code]

<div class="col-xs-5 col-xs-offset-1">

<div t-field="doc.partner_id.name"/>

<div><span t-field="doc.company_name"/>

<span t-field="doc.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: True}"/>

<p t-if="doc.partner_id.vat"><t t-esc="doc.company_id.country_id.vat_label or 'TIN'"/>: <span t-field="doc.partner_id.vat"/></p>

</div>

</div></div>

[/code]

but for some reason I get an error while trying to print the report. your help is appreciated.

Ray Carnes (ray)

doc.partner_id.company_name - not doc.company_name. This was my fault, I've updated my post. Each time you get an error, look at the bottom of the traceback and you will see what the problem is.

Ahmed Aljeshi
Penulis

Thanks Ray I really appreciate your help..

,, I'm almost there ,, bear with me plz..

so now the end result came

Client Name

*Company name is missing * :

Address

so I believe something wrong with

<div><span t-field="doc.partner_id.company_name"/>:

Thanks a lot

Ray Carnes (ray)

I just tried again and if the Company Name is blank, it could be because the Customer doesn't belong to a Company (has no parent_id). Is your CLIENT an Individual that shows below the COMPANY when you open the COMPANY Customer record?

Ahmed Aljeshi
Penulis

yes,

when I access the company profile from " Contacts Module" I see the client name in the bottom of the Company with the rest of clients under the same company

Ray Carnes (ray)

Can you export the COMPANY and CLIENT records and post the values? Choose these fields: Name, Company Name, Display Name, Address Type, Company Type, Related Company, Parent name, Is a Company, Commercial Entity and Company Name Entity.

Ahmed Aljeshi
Penulis

Hello Ray,

please find this picture , contains the details,

https://imgur.com/a/rRA6meW

for some reason, company_name is empty, this is why it doesn't show in the report, although this person is already added under this parent company :/

https://imgur.com/a/rRA6meW

is there a way to fill the company_name from odoo? or I just do it in Excel and re-import them again?

Regards,

Ray Carnes (ray)

Enter both into Odoo via the UI, then export in the same way so you can see which of these fields Odoo expects to have values. Then, make sure your import sheet matches the export.

Ahmed Aljeshi
Penulis

Thanks a lot Ray, I'm sure fixing this missing cell ( Company_name) will solve the problem.

sorry for all the hassle :)

I'll do the same steps for invoice too ,, much appreciated !

Ahmed Aljeshi
Penulis

Just tried it ! 100% Thanks again Ray!

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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