İç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

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

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
formatprintingodoov17
3 Cevaplar
2567 Görünümler
Avatar
Ronny

Hello Friends,

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

0
Avatar
Vazgeç
Avatar
Gracious Joseph
En İyi Yanıt

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

Hello Yuri,

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

0
Avatar
Vazgeç
Avatar
Yurii Razumovskyi
En İyi Yanıt

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
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
Since 17.0, the "attrs" and "states" attributes are no longer used. Çözüldü
odoo v17
Avatar
Avatar
Avatar
Avatar
Avatar
7
Eki 25
32093
How to Remove powered by odoo from online invoice footer ?
odoo v17
Avatar
Avatar
Avatar
2
Tem 25
2968
UncaughtPromiseError after insert and apply embeded code in the footer
odoo v17
Avatar
0
Mar 25
1921
[FR/EN]Problème pour envoyer des mails dans les factures/devis / Problem sending emails in invoices/quotes
odoo v17
Avatar
1
Tem 24
2739
odoo 17.0 error
odoo v17
Avatar
Avatar
Avatar
2
Nis 24
4533
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