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

Ubuntu 18.04 LTS: How to install wkhtmltopdf 0.12.1 (Recommended for Odoo 9.0 and lower)

Подписаться

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

Этот вопрос был отмечен
8.0wkhtml2pdfwkhtmltopdf9.0Ubuntu
18 Ответы
112662 Представления
Аватар
Ermin Trevisan

Using the regular packages available for wkhtmltopdf 0.12.1 results in dependency errors on Ubuntu 18.04 LTS, but Odoo needs the version 0.12.1 to work properly. How can I install wkhtmltopdf 0.12.1 properly on Ubuntu 18.04?

1
Аватар
Отменить
Kevin

wkhtmltopdf 0.12.4 (with patched qt) works fine with ubuntu 18.04.

Ermin Trevisan
Автор

IIRC there are issues with version 0.12.4 and 0.12.1 is still the recommend version.

Аватар
Ermin Trevisan
Автор Лучший ответ

Based on Yenthe's issue on Github https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3898 and thanks to the new builds provided by Ashish Kulkarni, the procedure is straightforward:

sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

apt-get install -f will install the missing dependencies, which are shown as errors by the dpkg command.

You can find other builds for wkhtmltopdf 0.12.1.3 suitable for Odoo on different Linux systems here: https://builds.wkhtmltopdf.org/0.12.1.3/

For detailled information please check the Odoo Wiki: https://github.com/odoo/odoo/wiki/Wkhtmltopdf

Enjoy.

14
Аватар
Отменить
Yenthe Van Ginneken (Mainframe Monkey)

Hey Ermin, thanks for the reply! This does indeed work, I just still have to copy the wkhtmltopdf files so perhaps you can add that here too? I did it like this:

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

Then it works great on 18.04 :-)

Ermin Trevisan
Автор

I'm not sure, I believe I did that but it was not necessary. I'll try it again and will update my answer if you are right.

Ermin Trevisan
Автор

Of course you are right, I was probably dreaming :-)

Fatih Piristine

and if you are still having problems to print, empty pdf files etc, add this to parameters: report.url = 127.0.0.1:PORT_NUMBER

Yenthe Van Ginneken (Mainframe Monkey)

F.P: Yes, that is a commonly known problem in Odoo. Usually happens in containered deployments :-)

Fatih Piristine

yes, but still many of us are not aware of it :)

Farid Ghanchi

Thanks it works

Philippe Thuaud

Thank you, this works like a charm

Nikhil Krishnan

Hi Ermin,

I installed the "wkhtmltopdf-.12.1.3". and confiqure the company "Document Template". its work fine for SO,PO,invoices. But when i take print of the product label or product barcode it will show the error like "Wkhtmltopdf failed (error code: -8). Message: b'' .! can you please help me to solve this.!

Ermin Trevisan
Автор

I'm late, but please simply read the comment to Ahmed J. ALgharawy's post just below and you'll find the answer to this font problem in my comment.

Murugan Chinnasamy

Thanks it works

Аватар
Frank Schouenberg
Лучший ответ

Oh, many many many thanks! 

Working like a charm!

2
Аватар
Отменить
Ermin Trevisan
Автор

You're welcome. But thanking in this forum means upvoting :-)

OdooBot

Can’t because my karma is too low ☹

 

Met vriendelijke groet,

Frank Schouenberg

Enzosystems BV
De Binderij 69
1321 EC Almere
 
The Netherlands
T. +31 36 546 10 46

M. +31 6 407 61 954
www.enzosystems.com
frank@enzosystems.com

 

Van: Ermin Trevisan <trevi@twanda.com>
Verzonden: maandag 4 juni 2018 09:28
Aan: Frank Schouenberg <frank@enzosystems.com>
Onderwerp: Re: Ubuntu 18.04 LTS: How to install wkhtmltopdf 0.12.1

 

View Forum Post

Odoo S.A.


You're welcome. But thanking in this forum means upvoting :-)

--
Ermin Trevisan

Sent by Odoo S.A. using Odoo.

Аватар
Rod Pullmann
Лучший ответ

Not so fast, @Ermin.  @JKBasseer's comment is entirely appropriate, and shouldn't be downvoted.

I found this comment page from an external googling of my own problems, and this is the most up-to-date discussion of the 'wkhtmltopdf' version hell that Odoo -- and we by extension -- finds ourselves embroiled in.  Your statement that "Version 0.12.1 is still the version recommended by Odoo" is only true up to Odoo 9.  For Odoo 10 and beyond, version 0.12.5 is the recommended version.  (See https://github.com/odoo/odoo/wiki/Wkhtmltopdf).

I wasn't able to readily find this exact version, so I'm running a 0.12.6 beta, which so far has worked fine on Odoo 11 and 12, Ubuntu 18.04 (Bionic Beaver).

You may want to limit this discussion to 0.12.1, but unless you know something to the contrary, this information is more current and useful than your recommendation.  Much of the world has moved beyond Odoo 9.

1
Аватар
Отменить
Аватар
left company
Лучший ответ

Hi I try the following, and it works for 

sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bi

except for inventory/porduct printing it return the error below

Wkhtmltopdf failed (error code: -8). Message: b''

please advice  

Regards

Ahmed




1
Аватар
Отменить
Ermin Trevisan
Автор

This is not related to this thread. It seems to be a font issue, please check https://github.com/odoo/odoo/issues/27487

left company

Thanks Ermin,

Yes what you mentioned is correct, it was a Font missing issue roboto.fon

Br

Ahmed

Аватар
JK Baseer
Лучший ответ

Guys I want to share what has worked me after 2 days of trying this with different solutions. 

Things to note: 

- please check the forum date before consider trying out the solution

- Secondly everyone recommendation of trying of 0.12.1 doesn't matter at all. I have installed the latest version(0.12.4) using the medium blog. 

- Follow that article, remove the old installation and also make sure to use "wkhtmltopdf --version" to test whether your installation has been successful. 

- As am very basic, this helped me that i don't need to be in any specific location in my terminal to install this, i can do from anywhere. Finally the file will be stored under usr/bin/ (after the unzip, after the file moved)

https://medium.com/@aadimator/odoo-wkhtmltopdf-installation-df0f47104c60

-1
Аватар
Отменить
Ermin Trevisan
Автор

This post is about the installation of wkthmltopdf version 0.12.1 and not about other versions of wkhtmltopdf. Version 0.12.1 is still the version recommended by Odoo (see official documentation) and there is a reason for it. If you don't know about the reasons or if you do not care about, then it is up to you to install the version you like, but please do not hijack this clear and specific thread.

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

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

Регистрация
Похожие посты Ответы Просмотры Активность
WkhtmltoPDF - PDF template isn't formatted properly, missing header, etc. Решено
wkhtml2pdf wkhtmltopdf
Аватар
Аватар
2
июн. 18
13925
wkhtmltopdf Решено
wkhtml2pdf wkhtmltopdf
Аватар
Аватар
3
июн. 18
5921
Missing wkhtmltopdf even if it's installed
wkhtml2pdf wkhtmltopdf
Аватар
Аватар
2
сент. 15
8204
Erro with wkhtmltopdf and Odoo11 Решено
wkhtml2pdf wkhtmltopdf odoov11
Аватар
Аватар
Аватар
3
мар. 19
8600
Error Code -11 WKHTMLTOPDF Решено
memory_usage wkhtml2pdf wkhtmltopdf
Аватар
Аватар
1
окт. 15
7717
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • 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