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

I am trying to customize a new invoice template. I am done with all the customizations I was asked for but now I am stuck with a problem in the tax text that appears under the lines in the statement. I want to inherit : tax_group_totals view or document_tax_totals view and update it according to my need. Is there any piece of code that can help me achieve this please? Appreciate your help

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

You can inherit document_tax_totals template like following.

<template id="report_sales_total_inherited" inherit_id="account.document_tax_totals">


    Add your custom code using xpath


</template>

Or

You can call a new template in the invoice report with the same code as document_tax_totals.

template id of invoice report is account.report_invoice_document

For more reference you can check the blog below.

https://www.cybrosys.com/blog/inheriting-existing-pdf-reports-in-odoo14

Regards

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 24
1042
2
نوفمبر 16
3851
2
مارس 15
5189
0
أكتوبر 24
543
0
يوليو 24
872