Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
8857 Prikazi

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

 

Avatar
Opusti

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

Best Answer

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

Avatar
Opusti

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

Best Answer

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"
Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 25
152
2
avg. 25
702
2
avg. 25
436
4
avg. 25
430
0
avg. 25
343