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


It's my first post I have OpenERP 7 and I need to be able to sum the amount_untaxed field in the invoice tree view. They could help me with the code to be implemented so that I can carry out this action. Thank you very much

อวตาร
ละทิ้ง

add sum attribute with the corresponding field in tree view.

<field name="debit" sum="Total Debit"/>,

like this

ผู้เขียน

Thanks for the response, but I've already done that:

<field name = "amount_untaxed" sum = "Total" />

<field name = "amount_tax" sum = "Total Tax" />

<field name = "amount_total" sum = "Total Amount" />

But the result is that amount_untaxed does not perform the summation, the other two fields if it does.

It may be something else?

Thank you very much

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

The sum is not performed if the field is computed and if it is not stored in the database.

Check if this is your case, and include store=True in the field definition.

อวตาร
ละทิ้ง