تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
3342 أدوات العرض

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
ديسمبر 23
2906
4
مايو 22
2802
6
مارس 22
9291
1
مارس 15
7725
0
مارس 15
3826