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

how/where can we modify the data that ist used for invoice-Report(PDF)?

we want to add some "Sections" before/between some invoice-lines on the fly while generating the report. 

The Section-Lines should not be stored in DB as section-lines. (Only be added dynamically but i do not know where i can modify the Data vor Invoice-printing.



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

Hi,

What you can do is that you inherit the existing report and do it. Suppose if after n raws if you need a section, you can add it by inherit and modifying the report template.


Same feature is there in the Odoo12, you can refer its code and apply the same,


Thanks

الصورة الرمزية
إهمال
الكاتب

but with standard odoo12 logic i need to add the setction as invoice line in the invoice before creating the pdf.

can i achieve adding dynamic lines only by template logic?

i thought about modifying the module short before submitting the data to the report. But i see that only the invoice_line_ids are parameters. so in fact the sections need to be within the invoice-model as lines in the DB.