Перейти к содержимому
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
Об этом форуме
Помощь

Error when printing Product Labels on Odoo17 community

Подписаться

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

Этот вопрос был отмечен
labelsv17
5 Ответы
2790 Представления
Аватар
Henco Lubbe

Please assist. We are getting the below error when adding barcodes to products and printing or tying to print product, receipt or delivery labels.


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "", line 177, in template_474

  File "", line 119, in template_474_content

  File "/opt/odoo/odoo/addons/base/models/https://db2.swiib.app/web/assets/ca35b62/web.assets_web.min.js:2858:7)

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

Hello,

Try to use this version of reportlab with paython 3.12

reportlab==4.1.0


Regards,

 

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

it is so difficult hic

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

bro may i know if you fixed it? i just made a fresh install and has the same issue i guess its something on server but which is the error ?

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

I'm encountering the same error when adding barcodes to products and trying to print labels. The RPC_ERROR message with the Odoo Server Error pops up consistently. It seems to be related to a specific template (template_474) and its content, but I'm not sure how to resolve it. Has anyone else experienced this issue or found a solution?

0
Аватар
Отменить
Аватар
Niyas Raphy (Walnut Software Solutions)
Лучший ответ

Hi,
There is not enough information to provide you help, but you can do this general debugging steps

* Ensure custom codes is not causing issue
* Make sure you have latest source code of 17
* See if you can reproduce the issue in odoo runbot, if yes, report it to odoo
* Also just try the same in a private window and see how it goes


Thanks

0
Аватар
Отменить
Henco Lubbe
Автор

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "<471>", line 218, in template_471
File "<471>", line 118, in template_471_content
File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 2448, in _get_widget
content = converter.value_to_html(value, field_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_qweb_fields.py", line 716, in value_to_html
barcode = self.env['ir.actions.report'].barcode(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 612, in barcode
return barcode.asString('png')
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/reportlab/graphics/shapes.py", line 807, in asString
return renderPM.drawToString(self, fmt=format,showBoundary=getattr(self,'showBorder',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 696, in drawToString
drawToFile(d,s,fmt=fmt, dpi=dpi, bg=bg, configPIL=configPIL,backend=backend)
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 691, in drawToFile
c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary,backend=backend)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 677, in drawToPMCanvas
draw(d, c, 0, 0, showBoundary=showBoundary)
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 66, in draw
R.draw(renderScaledDrawing(drawing), canvas, x, y, showBoundary=showBoundary)
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderbase.py", line 185, in draw
self.initState(x,y) #this is the push()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 113, in initState
self.applyState()
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 107, in applyState
self._canvas.setFont(s['fontName'], s['fontSize'])
File "/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py", line 405, in setFont
_setFont(self._gs,fontName,fontSize)
File "/usr/lib/python3/dist-packages/reportlab/graphics/utils.py", line 42, in setFont
_errorDump(fontName,fontSize)
File "/usr/lib/python3/dist-packages/reportlab/graphics/utils.py", line 29, in _errorDump
rl_exec(code,dict(RenderPMError=RenderPMError))
File "<string>", line 1, in <module>
reportlab.graphics.utils.RenderPMError: Error in setFont('Times-Roman',10) missing the T1 files?
Originally <class 'TypeError'>: makeT1Font() argument 2 must be str, not None

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/odoo/addons/web/controllers/report.py", line 120, in report_download
response = self.report_routes(reportname, converter=converter, context=context, **data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/addons/web/controllers/report.py", line 42, in report_routes
pdf = report.with_context(context)._render_qweb_pdf(reportname, docids, data=data)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/addons/account/models/ir_actions_report.py", line 61, in _render_qweb_pdf
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 840, in _render_qweb_pdf
collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/addons/sale_pdf_quote_builder/models/ir_actions_report.py", line 16, in _render_qweb_pdf_prepare_streams
result = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/addons/account/models/ir_actions_report.py", line 20, in _render_qweb_pdf_prepare_streams
return super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 728, in _render_qweb_pdf_prepare_streams
html = self.with_context(**additional_context)._render_qweb_html(report_ref, res_ids_wo_stream, data=data)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 917, in _render_qweb_html
return self._render_template(report.report_name, data), 'html'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 654, in _render_template
return view_obj._render_template(template, values).encode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 2050, in _render_template
return self.env['ir.qweb']._render(template, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 593, in _render
result = ''.join(rendering)
^^^^^^^^^^^^^^^^^^
File "<478>", line 57, in template_478
File "<478>", line 39, in template_478_content
File "<478>", line 29, in template_478_t_call_0
File "<476>", line 325, in template_476
File "<476>", line 307, in template_476_content
File "<476>", line 234, in template_476_t_call_0
File "<471>", line 224, in template_471
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
RenderPMError: Error in setFont('Times-Roman',10) missing the T1 files?
Originally <class 'TypeError'>: makeT1Font() argument 2 must be str, not None
Template: product.report_simple_label2x7
Path: /t/td/div/div[2]/div[1]/t/div
Node: <div t-out="barcode" t-options="{\'widget\': \'barcode\', \'symbology\': \'auto\', \'img_style\': barcode_size}"/>

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (https://db1.swiib.app/web/assets/363e60c/web.assets_web.min.js:2872:163)
at decoder.onload (https://db1.swiib.app/web/assets/363e60c/web.assets_web.min.js:2858:7)

Henco Lubbe
Автор

Thank you so much for the reply. My apologies, it seems the entire error did not paste on my initial post. I have posted it in the comment

Не оставайтесь в стороне – присоединяйтесь к обсуждению!

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

Регистрация
Похожие посты Ответы Просмотры Активность
Ya es posible hacer Upgrade de v17 a v17.1 ?
v17
Аватар
Аватар
1
окт. 25
1322
How to complete ZPL product labels?
labels
Аватар
Аватар
2
окт. 25
789
How to add a new Many2one field in res.config.settings? Решено
v17
Аватар
Аватар
Аватар
Аватар
4
окт. 25
3717
Add field to ALL models in Odoo
v17
Аватар
Аватар
Аватар
2
сент. 25
2391
How to disable Email notification - You have been assigned to Решено
v17
Аватар
Аватар
Аватар
Аватар
4
сент. 25
7785
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • 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