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

How to add measure total with tax in invoice business intelligence report any one have idea or any module?

 

อวตาร
ละทิ้ง

Hi, also need this. Did you managed to get it working?

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

Hi,

Try the code like below.

in .py

class AccountInvoiceReport(models.Model):
_inherit = 'account.invoice.report'

total_w_tax = fields.Float('Total With Tax', store=True)

def _select(self):
res = super(AccountInvoiceReport, self)._select()
select_str = res + """, move.amount_total AS total_w_tax """
return select_str
in .xml

https://ibb.co/7jRh0Wf

https://ibb.co/ypxm4kV

Regards

อวตาร
ละทิ้ง

Is it doable from Odoo Studio so far? I doubt, but who knows...

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

Good morning, 

If field total with tax not exist,

Add function calculate TotalWithTAX and affect it to new field,

then you can inherit view graph of invoices then add your field with 

type="measure"
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 25
79
0
ก.ย. 25
5
4
ก.ย. 25
1214
3
ก.ย. 25
306
1
ส.ค. 25
235