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

Hello everyone,


Is there a way to remove the sales description and Taxes column on the exported Invoice PDF? When I make an invoice and send it, the sales description is added in pdf, which makes the invoice messy. Also, we do not have to include taxes on products in our invoice so it is not necessary for us to include that column. Is there any way to remove it 


Odoo 17.00 FREE VERSION


Many thanks


Avatar
Descartar
Mejor respuesta

Hi,

To remove the description and  taxes from the invoice report layout you need to inherit the original XML template of the invoice


1. First you need to locate the actual template from the addons

2. Inherit the template in your custom module

3. Remove the data of description and tax from the template.

4. Run the module


Please refer to the below blog to get an idea of the inheritance of the XML Template

https://www.cybrosys.com/blog/an-overview-of-template-inheritance-in-odoo-16

Regards

Avatar
Descartar

Even if you don't like this AI generated answer it is the best one and it is the real solution. What you are asking for is only possible via XML edit.
And there is no such thing as Odoo 17.00 FREE VERSION, you are either referring to Odoo 17 Community Editon (self hosted self suported) or Odoo 17 Enterprise Free Plan.

Mejor respuesta

You can use this module to hide taxes column on Sales PDF https://apps.odoo.com/apps/modules/17.0/sale_hide_tax_columns/

And you can use this module to hide taxes column on Invoice PDF https://apps.odoo.com/apps/modules/17.0/account_hide_tax_columns/

Avatar
Descartar
Mejor respuesta

The invoice template is located in C:\Program Files\Odoo 17.0.20240307\server\odoo\addons\account\views\report_invoice.xml (Line 116)

If you also want to remove the tax column from the quotation, for the preview, it's in C:\Program Files\Odoo 17.0.20240307\server\odoo\addons\sale\views\sale_portal_templates.xml (line 552)\

and the PDF is "C:\Program Files\Odoo 17.0.20240307\server\odoo\addons\sale\report\ir_actions_report_templates.xml"

Took forever for me to find it, but in the end I was able to remove the taxes column. Make sure you click "Upgrade" on the relevant module (which is "invoicing" for all of these) after making any changes to the templates.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 23
2596
4
may 22
2574
6
mar 22
8951
1
mar 15
7582
0
mar 15
3633