Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][BUG] - l10n_br_account - Erro na impressão de PDF #3432

Closed
renanteixeira opened this issue Oct 10, 2024 · 2 comments
Closed

[16.0][BUG] - l10n_br_account - Erro na impressão de PDF #3432

renanteixeira opened this issue Oct 10, 2024 · 2 comments
Labels

Comments

@renanteixeira
Copy link

Module

l10n_br_account

Describe the bug

Após instalar o módulo l10n_br_account, não é mais possível imprimir relatórios PDF no sistema.
Traceback (most recent call last):
File "/opt/odoo/addons/web/controllers/report.py", line 113, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
File "/opt/odoo/odoo/http.py", line 734, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/report_xlsx/controllers/main.py", line 49, in report_routes
return super().report_routes(reportname, docids, converter, **data)
File "/opt/odoo/odoo/http.py", line 734, 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]
TypeError: IrActionsReport._render_qweb_pdf() got multiple values for argument 'data'

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (http://oca-l10n-brazil-16-0-bf60b0d93b26.runboat.odoo-community.org/web/assets/679-001b8a1/web.assets_backend.min.js:997:163)
at decoder.onload (http://oca-l10n-brazil-16-0-bf60b0d93b26.runboat.odoo-community.org/web/assets/679-001b8a1/web.assets_backend.min.js:984:7)

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. Testado localmente e também no RunBoat
  2. Abra qualquer registro que tenha um relatório PDF, por exemplo uma fatura
  3. Clique em Imprimir -> Invoices
    image
    image

Expected behavior
Download do arquivo PDF relacionado ao registro

Additional context
Ao remover o módulo l10n_br_account o arquivo é baixado normalmente.

@antoniospneto
Copy link
Contributor

Eu imagino que isso deve estar relacionado ao override que é feito para a DANFE.
Vamos dar uma analisada nisso ok

@antoniospneto
Copy link
Contributor

Resolvido no #3439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants