OCA / brand

Manage brands for products and companies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in previsualizing layout and printing invoices

rregales opened this issue · comments

When cofiguring the document layout, when you configure the Cahange Document Template to brand_external_layout, if you save it you have set the new layout, but when you go to change Document Template and Download PDF preview it shoyws you the standard layout and when you go back to configuration, you have the entry vaule for layout external_layout_standard.

If you set the brand_external_layout on your brand setup, if you go to Customers - Inovices and you try to create an invoice, if you print the invoice you get the following error:

RPC_ERROR
Arbitrary Uncaught Python Exception
500
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
The above server error caused the following client error:
RPC_ERROR: Arbitrary Uncaught Python Exception
RPCError@https://test.elogia-16.rapsodoo.com/web/assets/52050-c1ca215/web.assets_backend.min.js:989:274
makeErrorFromResponse@https://test.elogia-16.rapsodoo.com/web/assets/52050-c1ca215/web.assets_backend.min.js:993:163
download._download/</xhr.onload/decoder.onload@https://test.elogia-16.rapsodoo.com/web/assets/52050-c1ca215/web.assets_backend.min.js:981:7

16.0

The name of the module that has a bug.

Can't see

A clear and concise description of what the bug is.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Install apps: "Account Brand" / "Brand" / Brand External Report Layout
  2. Setup a Brand: Settings - Users & Companies - Brands
  3. Create a Brand, set the entrance for Change Documente Tempalte to brand_external_layout
  4. Change the Document Template with the required logo and Save
  5. Clicj to Download PDF Preview and the pdf generated doe not take the new layout it downloads standard
  6. Create a new invoice
  7. Print to preview the invoice layout
  8. you get the error shown earlier

Expected behavior
Get the new layout configured with the new logo and don't get an error message

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.