跳至内容
菜单
此问题已终结
3 回复
3279 查看

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


形象
丢弃
最佳答案

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

形象
丢弃

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.

最佳答案

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/

形象
丢弃
最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
2
12月 23
2855
4
5月 22
2739
6
3月 22
9244
1
3月 15
7703
0
3月 15
3780