odoo13 PDF作成でエラー 解決

印刷でエラーです。

まあ予想はついたけど。

Wkhtmltopdf がちゃんと入ってない。localeエラーが原因かな?

再インストールしてみます。

 

[root@v133-18 ~]#  LANG=C
[root@v133-18 ~]# locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
[root@v133-18 ~]# cd /opt
[root@v133-18 opt]# ls
odoo       odoo-13.0.git.zip  wkhtmltox-0.12.6-1.centos8.x86_64.rpm
odoo-13.0  odoo_x
[root@v133-18 opt]# dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.r
pm
Last metadata expiration check: 3:16:48 ago on Sun Jan 10 06:11:06 2021.
Dependencies resolved.
================================================================================
 Package         Architecture Version                  Repository          Size
================================================================================
Installing:
 wkhtmltox       x86_64       1:0.12.6-1.centos8       @commandline        15 M

Transaction Summary
================================================================================
Install  1 Package

Total size: 15 M
Installed size: 124 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : wkhtmltox-1:0.12.6-1.centos8.x86_64                    1/1
  Running scriptlet: wkhtmltox-1:0.12.6-1.centos8.x86_64                    1/1
  Verifying        : wkhtmltox-1:0.12.6-1.centos8.x86_64                    1/1

Installed:
  wkhtmltox-1:0.12.6-1.centos8.x86_64

Complete!
[root@v133-18 opt]# systemctl stop odoo13

[root@v133-18 opt]#
[root@v133-18 opt]# systemctl start odoo13
[root@v133-18 opt]# systemctl status odoo13.service
* odoo13.service - Odoo13
   Loaded: loaded (/etc/systemd/system/odoo13.service; enabled; vendor preset: >
   Active: active (running) since Sun 2021-01-10 09:30:32 JST; 6s ago
 Main PID: 4428 (python3)
    Tasks: 4 (limit: 11436)
   Memory: 58.0M
   CGroup: /system.slice/odoo13.service
           `-4428 /opt/odoo/odoo13-venv/bin/python3 /opt/odoo/odoo13/odoo-bin ->

でもダメです(ーー;
なんか、/usr/binにコピーしろと
あったので

[root@v133-18-203-152 opt]# find / -type f -name wkhtmltopdf
/usr/local/bin/wkhtmltopdf
[root@v133-18-203-152 opt]# find / -type f -name wkhtmltoimage
/usr/local/bin/wkhtmltoimage
[root@v133-18-203-152 opt]# cp /usr/local/bin/wkhtmltopdf /usr/bin
[root@v133-18-203-152 opt]# cp /usr/local/bin/wkhtmltoimage /usr/bin
[root@v133-18-203-152 opt]# systemctl stop odoo13
[root@v133-18-203-152 opt]# systemctl start odoo13
[root@v133-18-203-152 opt]# systemctl status odoo13.service
* odoo13.service - Odoo13
   Loaded: loaded (/etc/systemd/system/odoo13.service; enabled; vendor preset: >
   Active: active (running) since Sun 2021-01-10 09:40:14 JST; 6s ago
 Main PID: 4669 (python3)
    Tasks: 4 (limit: 11436)
   Memory: 60.8M
   CGroup: /system.slice/odoo13.service
           `-4669 /opt/odoo/odoo13-venv/bin/python3 /opt/odoo/odoo13/odoo-bin ->

これでもダメ(ーー;

いや、OS再起動OKになりました(^^

コメントを残す