İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
4255 Görünümler

we want total of all quantity in invoice report 

Avatar
Vazgeç
Üretici En İyi Yanıt

thanks its working

Avatar
Vazgeç
En İyi Yanıt
Hello Tahera
add below tempalate in your module



if you can't add this template in your module let me know will
make a module and push to odoo apps then you can use it easily


Avatar
Vazgeç

<template id="report_total_quantity_document" inherit_id="account.report_invoice_document">
<xpath expr="//p[@name='payment_term']" position="after">
<p>
<strong >Total Quantity </strong>
<span t-esc="sum([x.quantity for x in o.invoice_line_ids])"/>
</p>
</xpath>
</template>