Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4085 มุมมอง

hello all,

i have date range from 01/06/2020 to 05/06/2020, in that i have 4 records each records have some calculation like, qty.

i want following result:

Date: 01/06/2020

            record 1: 10 qty

            record 2: 20 qty

            total : 30 qty

Date: 03/06/2020

            record 1: 5 qty

            record 2: 3 qty

            total : 8 qty

grand total : 38 qty


How can i got this type of result?

อวตาร
ละทิ้ง

Hi ,

for this you want to get this in a list view as a filter or what ?

Can you explain More your request please

คำตอบที่ดีที่สุด

https://speedysense.com/create-custom-report-odoo-12/

Sample Qweb report template based on your requirement:-

<template id="template_id" name="Template">     
<t t-call="portal.portal_table">
<thead>
<tr>
<th>Date</th>
<th>Record No#</th>
<th>Quantity</th>
</tr>
</thead>
<tbody>
<tr t-foreach="record" t-as="r">
<td>
<t t-esc="r.fieldname1"/>
</td>
<td>
<t t-esc="r.fieldname2"/>
</td>
<td>
<t t-esc="r.fieldname3"/>
</td>
</tr>
</tbody>
<div class="row" name="total">
<tr class="border-black">
<td colspan="3">
<strong>Total qty:</strong>
<t t-esc="sum([r.fieldname3 for r in record])"/>
</td>
</tr>
</div>
</t>
</template>


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello imad chaikhi,

i want this in qweb pdf report.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 17
3385
1
ก.ค. 16
5449
3
ก.พ. 25
3091
0
พ.ค. 24
46
1
เม.ย. 24
3124