Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
8846 Vizualizări

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

 

Imagine profil
Abandonează

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

Cel mai bun răspuns

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

Imagine profil
Abandonează

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

Cel mai bun răspuns

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"
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 25
646
2
aug. 25
351
4
aug. 25
368
0
aug. 25
308
0
aug. 25
292