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

How to add all the customers to a Qweb report through the UI (no coding)

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
reportQweb13.0
3 Replies
6540 Tampilan
Avatar
Eduardo Sánchez

I want to receive a cron email with filtered customers meeting certain criteria in Odoo 13. 

Specifically as an example, if I go to res.partner in a list view I will see all the customers in the database, then I can filter a field (say the state) and see all the records meeting the criteria. I want to send that filtered list in a regular basis by email. 

My idea is to create a Template (everything through Odoo UI not Python coding), then set a scheduled job to send the email template in a regular basis.

My main challenge is to create the template in order to email the list view, a data export or whatever other option to receive that filtered info in a daily basis in my mailbox (regardless of the format, as text in the message body, as an attachment like PDF, CSV or XLS).

I am not a developer so I don't want to use Pycharm, etc but use Odoo UI and paste the code there.

So far I have been able to create a Qweb report with the filtered data but only works as long as I manually select (tick) all the records (ids) at the Res.partner tree view and after that click on "Print" and then select the report. It works the way I need it except for the need to manually have all the records ticked (active_ids). I believe t-foreach="docs" is only considering the active_ids and not all the database partners.

My question is: How can I have the report look at all the partners in the database without having to select them myself so that when I visit http://<serveraddress>/report/html/res_partner.report_imprerespartner the report is not blank?

The Qweb view that currently works (given the manual pre-selection of all the records) is:  <?xml version="1.0"?>   <t t-name="report_imprerespartner">     <t t-call="web.html_container">       <t t-call="web.external_layout">         <t t-foreach="docs" t-as="o">                       <span t-if=“o.x_campo == 'pedido'">                         <p>Notes: <span t-esc="o.comment" /></p>                       </span>             </t>         </t>     </t> </t>   

1
Avatar
Buang
Sehrish

QWEB Tips: http://learnopenerp.blogspot.com/search/label/Qweb

Avatar
Paresh Wagh
Jawaban Terbai

Hi Eduardo:

You can customize the report view and add the following before the <t t-foreach="docs" t-as="o"> line.

<t t-set="docs" t-value="env['res.partner'].search([])"/>

This will select all the partners every time the report is run irrespective of whether records are selected or not.

4
Avatar
Buang
Eduardo Sánchez
Penulis

@Paresh Thank you, Spent lots of time trying to find a way to do it and your suggestion works perfect!!. Appreciate it so much. Already upvoted.

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
JSON code displayed instead of table
report Qweb
Avatar
Avatar
1
Agu 23
2388
how to customize Qweb report Diselesaikan
report Qweb
Avatar
Avatar
Avatar
3
Sep 19
6802
Printing multiple records on a single page in Studio
pagebreak report Qweb
Avatar
Avatar
Avatar
2
Nov 25
403
Icons in Qweb Report V11 CE
report icon Qweb
Avatar
1
Jan 20
6604
How i can False Qweb Report in Odoo 12 Diselesaikan
report Qweb false
Avatar
Avatar
Avatar
Avatar
5
Sep 19
5765
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