Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
307 Vistas

I'm using version 18 for the first time.

I'm in the process of creating an invoice.

When printing the invoice, it adds in the document the "Transaction Type" field with the information "Delivery of Goods."

How can I delete this field and/or modify the information entered ? 

We only sell services.


Thank you.


Avatar
Descartar
Mejor respuesta

Hi,

In Odoo 18, the "Transaction Type" field, which appears as "Delivery of Goods" on the printed invoice, can be changed by first resetting the invoice to draft, manually editing the "Transaction Type" field, and then printing the invoice again with the updated value. However, if you want to remove this field entirely from the printed invoice, you will need to modify the invoice report template. This can be done either by using Odoo Studio (if the field is exposed in the report view) or by inheriting and customizing the QWeb report template (account.report_invoice_document) in a custom module. By removing or commenting out the corresponding XML code block that renders the transaction type, you can ensure it no longer appears in the printed document. This approach is useful for businesses that only sell services and want cleaner, more relevant invoice layouts.


1. Reset to draft

If you click the "Reset to Draft" button, you will be able to edit the field.



Result in report:




2. Remove the field Transaction Type

- Open studio



- Open the reports available in the invoice by clicking the "Reports"


Select report template



Click the Edit Sources to edit the code



Remove or comment the code which you want to remove


Result:


Hope it helps.



Avatar
Descartar
Autor Mejor respuesta

Thank's
It helps.

By the way, I have found that the arguments "Service delivery" or "Goods delivery" depends of the tax value. If you have put x%G or x%S it means Good ou Services, whatever you have put "goods" or "services" in the definition of the product.

Thank's again.


Avatar
Descartar
Mejor respuesta

Design of an invoice can be done in the Studio. So the studio app has to be installed. It will however, not show as an app icon, but in top of the window.

  • Open an invoice
  • Select the tool icon
  • Tools will open


By selecting a 'field' you can see the bar in the left changes to properties. On of those properties shows the 'domain'.

It is a little cryptic and I can imagine you do not know the model and field names by hart. So to figure out what is actually configured, you have to close (button on the right) the studio. The original invoice is displayed. Now you have be sure you are in in developer mode.

Activate developer mode by opening the app Settings. On the tab general settings scroll down and select activate developer mode. Then return to your invoice.


By hovering over a field it will now show the information about fields and models in the 'tool tip'. You can use this information in your designs.

There is a lot more to learn about Tools. Check in the tutorials for the course Studio for more information.


Hope it helps.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ago 25
59
1
ago 25
663
1
ago 25
364
2
ago 25
1542
3
ago 25
624