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
    • Discuss
    • 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

remove right side quotation date from the quotation order

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
qwebsaletemplatesodoo11.0
5 Replies
4077 Tampilan
Avatar
damourcode@gmail.com

Guys,

I would like to remove the Quotation date and Salesperson which is located right side but I can't find where their reference ids.

Where should I get references, I can't find it in report_saleorder_document 

see image https://imgur.com/hUA0yMw


0
Avatar
Buang
damourcode@gmail.com
Penulis

still, all solution can't work, please any help

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Jawaban Terbai

Hi,

You can actually find these two elements in the report_saleorder_document. You can find the quotation date here and the salesperson here. As they both don't have a really unique identifier it might be easier (and safer) to do an xpath on the above element and just recreate the rest of the content. For example:

<xpath expr="//div[id='informations']" position="replace">
  <div class="row mt32 mb32" id="informations">
    <div t-if="doc.client_order_ref" class="col-auto mw-100 mb-2">
      <strong>Your Reference:</strong>
      <p class="m-0" t-field="doc.client_order_ref"/>
    </div>
    <div t-if="doc.date_order and doc.state not in ['draft','sent']" class="col-auto mw-100 mb-2">
      <strong>Order Date:</strong>
      <p class="m-0" t-field="doc.date_order"/>
    </div>
    <div t-if="doc.validity_date and doc.state in ['draft', 'sent']" class="col-auto mw-100 mb-2" name="expiration_date">
      <strong>Expiration:</strong>
      <p class="m-0" t-field="doc.validity_date"/>
    </div>
  </div>
</xpath>

Regards,
Yenthe

3
Avatar
Buang
Avatar
Mahesh Dave
Jawaban Terbai

Hi,

You just need to inherit "report_saleorder_document" in your custom module xml file for remove "Quotation date and Salesperson". You have to select Quotation date and Salesperson using reference.

  • <odoo>
    <data>
    <template id="report_saleorder_document_customized" inherit_id="sale.report_saleorder_document">
              <!-- Hide Quotation date and Salesperson -->
              <!--<xpath expr="//p[@t-field='doc.date_order']" position="replace"/>
                <xpath expr="//p[@t-field='doc.user_id']" position="replace"/>-->
            
                <xpath expr="//div[@class='col-auto mw-100 mb-2'][4]" position="replace"/>
                <xpath expr="//div[@class='col-auto mw-100 mb-2'][3]" position="replace"/>
    </template>
      </data>
    </odoo>

Thanks

0
Avatar
Buang
Yenthe Van Ginneken (Mainframe Monkey)

Way riskier to do [index] in xpath expressions that to remove a bigger part and rebuild.

Avatar
damourcode@gmail.com
Penulis Jawaban Terbai
Hi @Yenthe,

These codes work well for bellow inline Quotation date and Salesperson fields, what I meant those display above one the right side with the same level of customer information.

see images https://imgur.com/hUA0yMw


<xpath expr="//div[@id='informations']" position="replace">
 <div class="row mt32 mb32" id="informations">
 <div t-if="doc.client_order_ref" class="col-auto mw-100 mb-2">                        
<strong>Your Reference:</strong>
 <p class="m-0" t-field="doc.client_order_ref"/>
 </div>                        
<div t-if="doc.date_order and doc.state not in ['draft','sent']" class="col-auto mw-100 mb-2"> 
 <strong>Order Date:</strong>                        
<p class="m-0" t-field="doc.date_order"/>                        
</div>                        
<div t-if="doc.validity_date and doc.state in ['draft', 'sent']" 
class="col-auto mw-100 mb-2" name="expiration_date">                        
<strong>Expiration:</strong>                        
<p class="m-0" t-field="doc.validity_date"/>                        
</div>                    
</div>                
</xpath> 
Thanks
0
Avatar
Buang
Sudhir Arya (ERP Harbor Consulting Services)

There is something you should try by your self from the given example and if you face issue, just post your code and the issue. We will sure try to help you.

damourcode@gmail.com
Penulis

Hi Sudhir,

I already used these code but I don't get the correct one to remove these fields thanks

Menikmati diskusi? Jangan hanya membaca, ikuti!

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

Daftar
Post Terkait Replies Tampilan Aktivitas
Alternate product listing, clone a route?
qweb templates
Avatar
0
Mar 15
4417
How to create template for odoo form
form qweb templates
Avatar
0
Apr 25
2313
Custom Invoice Report
invoice qweb templates
Avatar
0
Jan 24
2516
Unescaped '<' not allowed in attributes values (qweb) Diselesaikan
qweb templates odoo12
Avatar
Avatar
2
Feb 24
16671
Go through a loop n times in QWEB Diselesaikan
qweb templates odoo
Avatar
Avatar
Avatar
Avatar
4
Apr 24
21989
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