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

we want total of all quantity in invoice report 

形象
丢弃
编写者 最佳答案

thanks its working

形象
丢弃
最佳答案
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


形象
丢弃

<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>