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

Need help in Printing internal transfer in thermal printer in odoo v17

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
formatprintingodoov17
3 Replies
2571 Tampilan
Avatar
Ronny

Hello Friends,

I need some help in printing internal transfer entries using thermal printer. ​ ​ ​ ​

0
Avatar
Buang
Avatar
Gracious Joseph
Jawaban Terbai

To print internal transfer receipts using a thermal printer in Odoo 17, you'll need to configure a custom report format suitable for thermal printing and ensure it is connected to the stock transfer process. Here's a step-by-step guide:

1. Understand the Requirements

  • Internal Transfer Receipts: Refers to printing a formatted document that details the products being transferred between warehouses.
  • Thermal Printer: Requires compact, printer-friendly formatting for smaller receipt sizes.

2. Create a Custom QWeb Report for Internal Transfers

Odoo uses QWeb for rendering reports. You’ll need to define a new QWeb report that is tailored for thermal printers.

Steps to Create the Report:

  1. Create a Custom Module If you don’t already have a custom module, create one with the following structure:
    custom_internal_transfer_report/
    ├── __init__.py
    ├── __manifest__.py
    ├── reports/
    │   ├── internal_transfer_report.xml
    │   └── report_templates.xml
    
  2. Update __manifest__.py Define your module and ensure it depends on the stock module:
    {
        'name': 'Internal Transfer Thermal Report',
        'version': '1.0',
        'depends': ['stock'],
        'data': [
            'reports/internal_transfer_report.xml',
            'reports/report_templates.xml',
        ],
        'installable': True,
    }
    
  3. Define the Report in internal_transfer_report.xml Link the report to the internal transfer model (stock.picking):
    <odoo>
        <report
            id="action_report_internal_transfer"
            model="stock.picking"
            string="Internal Transfer Receipt"
            report_type="qweb-pdf"
            file="custom_internal_transfer_report.report_internal_transfer"
            name="custom_internal_transfer_report.report_internal_transfer"
            print_report_name="'Internal Transfer - %s' % (object.name)"
        />
    </odoo>
    
  4. Create the Report Template in report_templates.xml Design a compact layout for the thermal printer:
    <odoo>
        <template id="report_internal_transfer">
            <t t-call="web.basic_layout">
                <div class="page">
                    <div class="text-center">
                        <h3>Internal Transfer</h3>
                        <p><strong>Reference:</strong> <t t-esc="doc.name"/></p>
                        <p><strong>Date:</strong> <t t-esc="doc.scheduled_date"/></p>
                    </div>
                    <table class="table table-condensed">
                        <thead>
                            <tr>
                                <th>Product</th>
                                <th>Quantity</th>
                                <th>Unit</th>
                            </tr>
                        </thead>
                        <tbody>
                            <t t-foreach="doc.move_ids_without_package" t-as="line">
                                <tr>
                                    <td><t t-esc="line.product_id.display_name"/></td>
                                    <td><t t-esc="line.product_uom_qty"/></td>
                                    <td><t t-esc="line.product_uom.name"/></td>
                                </tr>
                            </t>
                        </tbody>
                    </table>
                </div>
            </t>
        </template>
    </odoo>
    
  5. Connect the Report to Internal Transfers
    • Go to Inventory > Configuration > Document Layouts.
    • Assign your custom report as the default report for internal transfers.

3. Adjust the Report for Thermal Printing

Thermal printers typically require smaller paper sizes and specific styles.

  • Set Page Size: In your template, add a style block:
    <style>
        @media print {
            @page {
                size: 80mm auto; /* Adjust for your thermal printer */
                margin: 5mm;
            }
            body {
                font-size: 10px;
            }
            table {
                width: 100%;
                border-collapse: collapse;
            }
            th, td {
                border: 1px solid black;
                padding: 5px;
            }
        }
    </style>
    
  • Test the Output: Print the receipt to your thermal printer and tweak the layout as needed.

4. Add a Button for Printing

To make printing easier for users, add a button in the Internal Transfer form view.

Modify the internal_transfer_report.xml:

<record id="stock_picking_internal_form_view" model="ir.ui.view">
   <field name="name">stock.picking.internal.form</field>
   <field name="model">stock.picking</field>
   <field name="inherit_id" ref="stock.view_picking_form"/>
   <field name="arch" type="xml">
       <xpath expr="//header" position="inside">
           <button name="%(action_report_internal_transfer)d" string="Print Receipt"
                   type="action" class="btn-primary" />
       </xpath>
   </field>
</record>

5. Install and Test

  1. Restart your Odoo server and install your custom module.
  2. Create an internal transfer and validate it.
  3. Use the Print Receipt button to generate and print the thermal receipt.

6. Advanced Features (Optional)

  • Auto-Print After Validation: If you want the receipt to print automatically after validation, add this functionality to the button_validate method in stock.picking.
  • QR/Barcode for Tracking: Add a QR or barcode to the receipt for easier tracking. Use the barcode widget in your QWeb template:
    <img t-att-src="'/report/barcode/?type=QR&value=%s' % doc.name"/>
    

Conclusion

By following these steps, you can print internal transfer receipts using a thermal printer in Odoo 17. Let me know if you need further help or clarification with any part of the process!

0
Avatar
Buang
Avatar
Ronny
Penulis Jawaban Terbai

Hello Yuri,

I want to print receipts from internal transfer this is only for labels solutions does not support printing receipts.

0
Avatar
Buang
Avatar
Yurii Razumovskyi
Jawaban Terbai

Hello Ronny,

You can print labels from stock transfers (including internal transfers) with this Stock Product Labels solution.


Best regards, Yurii Razumovskyi.

Company Garazd Creation — Odoo solutions for e-Commerce, SEO, Data Feeds, Website Tracking, Marketing, Analytics, and Marketplace integrations, Product Label designing and printing.

https://garazd.biz  |  Our solutions on Odoo Apps

0
Avatar
Buang
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
Since 17.0, the "attrs" and "states" attributes are no longer used. Diselesaikan
odoo v17
Avatar
Avatar
Avatar
Avatar
Avatar
7
Okt 25
32117
How to Remove powered by odoo from online invoice footer ?
odoo v17
Avatar
Avatar
Avatar
2
Jul 25
2971
UncaughtPromiseError after insert and apply embeded code in the footer
odoo v17
Avatar
0
Mar 25
1925
[FR/EN]Problème pour envoyer des mails dans les factures/devis / Problem sending emails in invoices/quotes
odoo v17
Avatar
1
Jul 24
2741
odoo 17.0 error
odoo v17
Avatar
Avatar
Avatar
2
Apr 24
4535
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