Перейти к содержимому
Odoo Меню
  • Войти
  • Попробовать бесплатно
  • Модули
    Финансы
    • Бухгалтерия
    • Выставление счетов
    • Расходы
    • Таблицы
    • Документооборот
    • Подпись
    Продажи
    • CRM
    • Продажи
    • POS Магазин
    • POS Ресторан
    • Подписки
    • Аренда
    Вебсайты
    • Конструктор вебсайтов
    • eCommerce
    • Блог
    • Форум
    • Онлайн-чат
    • Электронное обучение
    Логистика
    • Склад
    • Производство
    • PLM
    • Закупки
    • Обслуживание
    • Качество
    Отдел кадров
    • Сотрудники
    • Подбор персонала
    • Отпуска
    • Оценка персонала
    • Реферальная программа
    • Автопарк
    Маркетинг
    • SMM
    • E-mail рассылки
    • СМС рассылки
    • Мероприятия
    • Автоматизация маркетинга
    • Опросы
    Услуги
    • Проекты
    • Табели
    • Выездной сервис
    • Поддержка
    • Планирование
    • Встречи
    Продуктивность
    • Обсуждения
    • Согласование
    • IoT
    • VoIP-телефония
    • Knowledge
    • WhatsApp
    Сторонние приложения Модуль Студия Odoo Платформа Odoo Cloud
  • Индустрии
    Розничная торговля
    • Книжный магазин
    • Магазин одежды
    • Мебельный магазин
    • Продуктовый магазин
    • Строительный магазин
    • Магазин игрушек
    Гостинично-ресторанный бизнес
    • Бар и паб
    • Ресторан
    • Фастфуд
    • Гостевой дом
    • Дистрибьютор напитков
    • Отель
    Недвижимость
    • Агентство недвижимости
    • Архитектурное бюро
    • Строительство
    • Управление недвижимостью
    • Ландшафтный дизайн
    • Товарищество собственников жилья
    Консалтинг
    • Бухгалтерская фирма
    • Партнер Odoo
    • Маркетинговое агентство
    • Юридическая фирма
    • Подбор персонала
    • Аудиторское бюро
    Производство
    • Текстиль
    • Металл
    • Мебель
    • Продукты питания
    • Пивоварня
    • Корпоративные сувениры
    Здоровье и фитнес
    • Спортивный комплекс
    • Магазин оптики
    • Фитнес-клуб
    • Велнес-центр
    • Аптека
    • Салон красоты
    Услуги
    • Специалист по бытовым услугам
    • Продажа и обслуживание IT-оборудования
    • Солнечные энергосистемы
    • Производство обуви
    • Клининг
    • Системы ОВКВ
    Прочее
    • Некоммерческая организация
    • Консалтинг в сфере устойчивого развития
    • Аренда рекламных щитов
    • Бизнес по фотосъемке
    • Прокат велосипедов
    • Реселлер программного обеспечения
    Все индустрии
  • Community
    Обучение
    • Видео уроки
    • Документация
    • Сертификация
    • Тренинг
    • Блог
    • Подкаст
    Образование и развитие
    • Образовательная программа
    • Деловая игра Scale Up!
    • Экскурсия в офис Odoo
    ПО
    • Скачать
    • Сравнить версии
    • Релизы
    Сотрудничество
    • Github
    • Форум
    • Мероприятия
    • Перевод
    • Стать партнером
    • Услуги для партнеров
    • Зарегистрировать бухгалтерскую фирму
    Услуги
    • Найти партнера
    • Найти бухгалтера
    • Встреча с экспертом
    • Услуги по внедрению
    • Отзывы клиентов
    • Поддержка
    • Обновления
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Заказать демонстрацию
  • Цены
  • Поддержка

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

  • CRM
  • e-Commerce
  • Бухгалтерия
  • Склад
  • PoS
  • Проекты
  • MRP
All apps
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Помощь

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

Подписаться

Получайте уведомления о появлении активности в этом посте

Этот вопрос был отмечен
formatprintingodoov17
3 Ответы
2564 Представления
Аватар
Ronny

Hello Friends,

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

0
Аватар
Отменить
Аватар
Gracious Joseph
Лучший ответ

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
Аватар
Отменить
Аватар
Ronny
Автор Лучший ответ

Hello Yuri,

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

0
Аватар
Отменить
Аватар
Yurii Razumovskyi
Лучший ответ

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
Аватар
Отменить
Не оставайтесь в стороне – присоединяйтесь к обсуждению!

Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!

Регистрация
Похожие посты Ответы Просмотры Активность
Since 17.0, the "attrs" and "states" attributes are no longer used. Решено
odoo v17
Аватар
Аватар
Аватар
Аватар
Аватар
7
окт. 25
32086
How to Remove powered by odoo from online invoice footer ?
odoo v17
Аватар
Аватар
Аватар
2
июл. 25
2967
UncaughtPromiseError after insert and apply embeded code in the footer
odoo v17
Аватар
0
мар. 25
1920
[FR/EN]Problème pour envoyer des mails dans les factures/devis / Problem sending emails in invoices/quotes
odoo v17
Аватар
1
июл. 24
2738
odoo 17.0 error
odoo v17
Аватар
Аватар
Аватар
2
апр. 24
4533
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • Github
  • Runbot
  • Перевод
Услуги
  • Хостинг Odoo.sh
  • Поддержка
  • Обновление
  • Индивидуальные решения по доработке
  • Образование
  • Найти бухгалтера
  • Найти партнера
  • Стать партнером
О нас
  • Наша компания
  • Активы бренда
  • Cвяжитесь с нами
  • Вакансии
  • Мероприятия
  • Подкаст
  • Блог
  • Клиенты
  • Правовые документы • Конфиденциальность
  • Безопасность
الْعَرَبيّة 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 – это набор бизнес-модулей с открытым исходным кодом, который закроет все потребности вашей компании: CRM, E-commerce, Бухгалтерия, Склад, POS, управление проектами и др.

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