跳至内容
Odoo 菜单
  • 登录
  • 免费试用
  • 应用程序
    财务
    • 会计
    • 发票
    • 费用
    • 电子表格 (BI)
    • 文档
    • 电子签名
    销售
    • 客户关系管理
    • 销售
    • POS 销售点管理-零售
    • POS 销售点管理 - 餐厅
    • 订阅
    • 租赁
    网站
    • 网站设计
    • 电子商务
    • 博客
    • 论坛
    • 在线客服
    • 在线学习
    供应链
    • 库存
    • 制造
    • 产品生命周期
    • 采购
    • 维护保养
    • 品控
    人力资源
    • 员工
    • 招聘
    • 休假
    • 评价
    • 内部推荐
    • 车队
    营销
    • 社媒营销
    • 电邮营销
    • 短信营销
    • 近期活动
    • 营销自动化
    • 网上调查
    服务
    • 项目管理
    • 工时单
    • 现场服务
    • 服务台
    • 排期
    • 预约
    生产力
    • 讨论
    • 批核
    • IoT物联网
    • VoIP
    • 知识库
    • WhatsApp
    第三方应用软件 Odoo 定制 Odoo云端平台
  • 行业
    零售
    • 书店
    • 服装店
    • 家具店
    • 食品杂货店
    • 五金店
    • 玩具店
    餐饮与酒店服务
    • 酒吧及酒馆
    • 餐厅
    • 快餐
    • 民宿
    • 饮品分销商
    • 酒店
    房地产
    • 房地产代理
    • 建筑师事务所
    • 建造业
    • 地产管理
    • 园艺
    • 业主协会
    咨询
    • 会计师事务所
    • Odoo合作伙伴
    • 市场推广公司
    • 律师事务所
    • 人才招聘
    • 审核 & 认证
    制造
    • 纺织
    • 金属
    • 家具
    • 食品
    • 啤酒厂
    • 企业礼品
    保健与健身
    • 体育俱乐部
    • 眼镜店
    • 健身中心
    • 健康从业者
    • 药房
    • 发型屋
    商贸服务
    • 维修人员
    • IT 硬件及支持
    • 太阳能系统
    • 鞋匠
    • 清洁服务
    • 暖通空调服务
    其他
    • 非营利组织
    • 环境机构
    • 广告牌租赁
    • 摄影服务
    • 自行车租赁
    • 软件经销商
    浏览所有行业
  • 社区
    学习
    • 教学视频
    • 文档
    • 认证
    • 培训
    • 博客
    • 播客
    赋能教育
    • 教育计划
    • 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:

  • 客户关系管理
  • e-Commerce
  • 会计
  • 库存
  • PoS
  • 项目
  • MRP
All apps
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
帮助

Can't Generate PDF in Odoov15

订阅

此帖文有活动时,接收通知

此问题已终结
pdfv15
1 回复
3214 查看
形象
Bacar Sylla

Hi,

i'm using Odoo V15. i'm trying to generate, print or send invoice, or report but it stuck in loading page. Anyone can help ?

0
形象
丢弃
Bacar Sylla
编写者

Hi Nils! 

I'm using Odoo 15 CE. tried to reload the modules but still the same.

Here is the logs. Could you help ?

result = ir_http._dispatch()

File: "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch

return super(Http, cls)._dispatch()

File: "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch

return super(IrHttp, cls)._dispatch()

File: "/usr/lib/python3/dist-packages/odoo/addons/utm/models/ir_http.py", line 29, in _dispatch

response = super(IrHttp, cls)._dispatch()

File: "/usr/lib/python3/dist-packages/odoo/addons/http_routing/models/ir_http.py", line 519, in _dispatch

result = super(IrHttp, cls)._dispatch()

File: "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

result = request.dispatch()

File: "/usr/lib/python3/dist-packages/odoo/http.py", line 815, in dispatch

r = self._call_function(**self.params)

File: "/usr/lib/python3/dist-packages/odoo/http.py", line 368, in _call_function

return checked_call(self.db, *args, **kwargs)

File: "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper

return f(dbname, *args, **kwargs)

File: "/usr/lib/python3/dist-packages/odoo/http.py", line 357, in checked_call

result = self.endpoint(*a, **kw)

File: "/usr/lib/python3/dist-packages/odoo/http.py", line 921, in __call__

return self.method(*args, **kw)

File: "/usr/lib/python3/dist-packages/odoo/http.py", line 546, in response_wrap

response = f(*args, **kw)

File: "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 2000, in report_download

response = self.report_routes(reportname, docids=docids, converter=converter, context=context)

File: "/usr/lib/python3/dist-packages/odoo/http.py", line 546, in response_wrap

response = f(*args, **kw)

File: "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1929, in report_routes

pdf = report.with_context(context)._render_qweb_pdf(docids, data=data)[0]

File: "/usr/lib/python3/dist-packages/odoo/addons/account/models/ir_actions_report.py", line 50, in _render_qweb_pdf

return super()._render_qweb_pdf(res_ids=res_ids, data=data)

File: "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 909, in _render_qweb_pdf

pdf_content = self._run_wkhtmltopdf(

File: "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 488, in _run_wkhtmltopdf

out, err = process.communicate()

File: "/usr/lib/python3.9/subprocess.py", line 1134, in communicate

stdout, stderr = self._communicate(input, endtime, timeout)

File: "/usr/lib/python3.9/subprocess.py", line 1981, in _communicate

ready = selector.select(timeout)

File: "/usr/lib/python3.9/selectors.py", line 416, in select

fd_event_list = self._selector.poll(timeout)

2023-07-18 06:53:22,846 1 INFO ? odoo.service.server: Initiating server reload

2023-07-18 06:53:23,122 1 INFO ? odoo.sql_db: ConnectionPool(used=0/count=0/max=64): Closed 9 connections

2023-07-18 06:53:23,730 1 INFO ? odoo: Odoo version 15.0-20230530

2023-07-18 06:53:23,731 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf

2023-07-18 06:53:23,731 1 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/addons/15.0', '/mnt/extra-addons']

2023-07-18 06:53:23,731 1 INFO ? odoo: database: odoo@172.17.0.5:5432

2023-07-18 06:53:23,871 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf

2023-07-18 06:53:24,045 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on 7670bb9481ba:8069

2023-07-18 06:53:26,761 1 INFO ? odoo.http: HTTP Configuring static files

2023-07-18 06:53:26,778 1 INFO alnshop odoo.modules.loading: loading 1 modules...

2023-07-18 06:53:26,791 1 INFO alnshop odoo.modules.loading: 1 modules loaded in 0.01s, 0 queries (+0 extra)

2023-07-18 06:53:26,847 1 INFO alnshop odoo.modules.loading: loading 157 modules...

2023-07-18 06:53:27,723 1 WARNING alnshop odoo.models: The model pos.report has no _description

2023-07-18 06:53:27,724 1 WARNING alnshop odoo.models: The model report.pos_report_generator.pos_order_report has no _description

2023-07-18 06:53:27,828 1 WARNING alnshop odoo.models: The model sale.report.advance has no _description

2023-07-18 06:53:27,829 1 WARNING alnshop odoo.models: The model sale.report.invoice has no _description

2023-07-18 06:53:27,829 1 WARNING alnshop odoo.models: The model sale.report.category has no _description

2023-07-18 06:53:27,829 1 WARNING alnshop odoo.models: The model sale.report.indent has no _description

2023-07-18 06:53:27,830 1 WARNING alnshop odoo.models: The model sale.report.analysis has no _description

2023-07-18 06:53:27,830 1 WARNING alnshop odoo.models: The model sale.report.weekly has no _description

2023-07-18 06:53:27,837 1 WARNING alnshop odoo.models: The model sales.report has no _description

2023-07-18 06:53:27,838 1 WARNING alnshop odoo.models: The model report.sale_report_generator.sale_order_report has no _description

2023-07-18 06:53:27,851 1 WARNING alnshop odoo.models: The model report.advanced_pos_reports.report_pos_posted_session has no _description

2023-07-18 06:53:27,852 1 WARNING alnshop odoo.models: The model report.advanced_pos_reports.report_pos_ongoing_session has no _description

2023-07-18 06:53:27,852 1 WARNING alnshop odoo.models: The model report.advanced_pos_reports.report_pos_top_selling_products has no _description

2023-07-18 06:53:27,853 1 WARNING alnshop odoo.models: The model report.advanced_pos_reports.report_pos_top_selling_categories has no _description

2023-07-18 06:53:27,853 1 WARNING alnshop odoo.models: The model report.advanced_pos_reports.report_pos_top_selling_customers has no _description

2023-07-18 06:53:27,859 1 WARNING alnshop odoo.addons.base.models.decimal_precision: Deprecated call to decimal_precision.get_precision(), use digits= instead

2023-07-18 06:53:27,859 1 WARNING alnshop odoo.addons.base.models.decimal_precision: Deprecated call to decimal_precision.get_precision(), use digits= instead

2023-07-18 06:53:27,885 1 INFO alnshop odoo.modules.loading: 157 modules loaded in 1.04s, 0 queries (+0 extra)

2023-07-18 06:53:28,047 1 WARNING alnshop odoo.fields: sale.order.state: selection=[('draft', 'Quotation'), ('sent', 'Quotation Sent'), ('waiting', 'Waiting Approval'), ('sale', 'Sales Order'), ('done', 'Locked'), ('cancel', 'Cancelled')] overrides existing selection; use selection_add instead

2023-07-18 06:53:28,087 1 WARNING alnshop odoo.fields: Field account.move.amount_discount: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,105 1 WARNING alnshop odoo.fields: Field budget.budget.state: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,113 1 WARNING alnshop odoo.fields: Field pos.order.line.returned_qty: unknown parameter 'digits', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,114 1 WARNING alnshop odoo.fields: Field sale.order.state: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,115 1 WARNING alnshop odoo.fields: Field sale.order.amount_untaxed: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,115 1 WARNING alnshop odoo.fields: Field sale.order.amount_tax: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,115 1 WARNING alnshop odoo.fields: Field sale.order.amount_total: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,116 1 WARNING alnshop odoo.fields: Field sale.order.amount_discount: unknown parameter 'digits', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,116 1 WARNING alnshop odoo.fields: Field sale.order.amount_discount: unknown parameter 'track_visibility', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,119 1 WARNING alnshop odoo.fields: Field sale.report.advance.type: unknown parameter 'reqired', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,120 1 WARNING alnshop odoo.fields: Field sale.report.invoice.status: unknown parameter 'reqired', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,120 1 WARNING alnshop odoo.fields: Field sale.report.indent.status: unknown parameter 'reqired', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,121 1 WARNING alnshop odoo.fields: Field sale.report.analysis.status: unknown parameter 'reqired', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,121 1 WARNING alnshop odoo.fields: Field sale.report.analysis.print_type: unknown parameter 'reqired', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

2023-07-18 06:53:28,326 1 INFO alnshop odoo.modules.loading: Modules loaded.

2023-07-18 06:53:28,336 1 INFO alnshop odoo.modules.registry: Registry loaded in 1.572s

2023-07-18 06:53:28,338 1 INFO alnshop odoo.addons.base.models.ir_http: Generating routing map for key None

2023-07-18 06:53:28,678 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:53:28] "POST /web/webclient/version_info HTTP/1.1" 200 - 19 0.025 1.888

2023-07-18 06:53:48,908 1 INFO ? odoo.addons.bus.models.bus: Bus.loop listen imbus on db postgres

2023-07-18 06:54:08,681 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:54:08] "POST /longpolling/im_status HTTP/1.1" 200 - 18 0.018 0.025

2023-07-18 06:54:38,911 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:54:38] "POST /longpolling/poll HTTP/1.1" 200 - 15 0.011 50.281

2023-07-18 06:54:59,648 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:54:59] "POST /longpolling/im_status HTTP/1.1" 200 - 5 0.002 0.006

2023-07-18 06:55:29,390 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:55:29] "POST /longpolling/poll HTTP/1.1" 200 - 9 0.003 50.010

2023-07-18 06:55:50,641 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:55:50] "POST /longpolling/im_status HTTP/1.1" 200 - 5 0.003 0.010

2023-07-18 06:56:19,853 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:56:19] "POST /longpolling/poll HTTP/1.1" 200 - 9 0.004 50.010

2023-07-18 06:56:27,252 1 INFO alnshop odoo.addons.base.models.ir_cron: Starting job `payment: post-process transactions`.

2023-07-18 06:56:27,258 1 INFO alnshop odoo.addons.base.models.ir_cron: Job `payment: post-process transactions` done.

2023-07-18 06:56:41,632 1 INFO alnshop werkzeug: 102.142.116.207 - - [18/Jul/2023 06:56:41] "POST /longpolling/im_status HTTP/1.1" 200 - 5 0.004 0.007

Do you guys have any idea ? is it about models or Wkhtmltopdf ?

Thank you guys
形象
Nils Coenen
最佳答案

Hey Bacar,

you should check your server logs to see if anything helpful is listed. 

Could be an issue with wkhtmltopdf, but with the given information it is more or less fishing in the dark. Is it Odoo CE or EE and what type of hosting do you have?


0
形象
丢弃
喜欢讨论吗?不要只阅读,加入进来!

立即创建账户,享受专属功能,与我们的精彩社区互动!

注册
相关帖文 回复 查看 活动
Filling form fields in an existing PDF (CMR)
pdf v15
形象
形象
1
2月 24
5196
Error while creating template for pdf
pdf xml v15
形象
形象
1
5月 25
4063
Generate and store a pdf or send by mail
pdf reporting v15
形象
0
4月 24
2659
Is there a way to upload the same PDF work instructions to all work instructions on a BOM in one action?
pdf BOM v15
形象
形象
1
3月 23
3596
Change Font style in PDF signature
pdf signature v15
形象
形象
形象
2
3月 23
4529
社区
  • 教学视频
  • 文档
  • 论坛
开源
  • 下载
  • Github
  • Runbot
  • 翻译
服务
  • Odoo.sh 托管
  • 支持
  • 升级
  • 自定义开发服务
  • 教育
  • 查找会计服务
  • 寻找合作伙伴
  • 成为合作伙伴
关于我们
  • 我们的公司
  • 品牌资产
  • 联系我们
  • 招聘
  • 近期活动
  • 播客
  • 博客
  • 客户
  • 法律 • 隐私
  • 安全
الْعَرَبيّة 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致力于为企业管理提供高效智能的开源解决方案,是全球业内高速成长的软件服务商之一,逾七百五十万用户选择Odoo进行数字化升级。通过一系列全业务链覆盖、高度集成、简单易用的商业应用,助力企业实现信息化改革、降本增效并释放公司增长潜力。

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