Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8991 Lượt xem

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

 

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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"
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 25
4
3
thg 9 25
263
1
thg 8 25
207
1
thg 8 25
281
0
thg 8 25
171